return Mono.just(domains.get(domainId));
}
private static Flux<Resource<?>> getDomains(CloudFoundryClient cloudFoundryClient, String organizationId, String domain) {
return requestPrivateDomains(cloudFoundryClient, organizationId, domain)
.map(OperationUtils.<PrivateDomainResource, Resource<?>>cast())
<BUG>.switchIfEmpty(requestSharedDomains(cloudFoundryClient, domain)

.map(OperationUtils.<SharedDomainResource, Resource<?>>cast()));</BUG>
}
private static Mono<String> getOptionalDomainId(CloudFoundryClient cloudFoundryClient, String organizationId, String domain) {

return Mono.just(domains.get(domainId));
}
private static Flux<Resource<?>> getDomains(CloudFoundryClient cloudFoundryClient, String organizationId, String domain) {
return requestPrivateDomains(cloudFoundryClient, organizationId, domain)
.map(OperationUtils.<PrivateDomainResource, Resource<?>>cast())
.switchIfEmpty(requestSharedDomains(cloudFoundryClient, domain));
}
private static Mono<String> getOptionalDomainId(CloudFoundryClient cloudFoundryClient, String organizationId, String domain) {
