private static Flux<SharedDomainResource> requestListSharedDomains(
     CloudFoundryClient cloudFoundryClient) {
   return PaginationUtils.requestClientV2Resources(
       page ->
           cloudFoundryClient
               .sharedDomains()
               .list(ListSharedDomainsRequest.builder().page(page).build()));
 }
 private static Mono<CreateSharedDomainResponse> requestCreateSharedDomain(
     CloudFoundryClient cloudFoundryClient, String domain) {
   return cloudFoundryClient
       .sharedDomains()
       .create(
           org.cloudfoundry.client.v2.shareddomains.CreateSharedDomainRequest.builder()
               .name(domain)
               .build());
 }