private final Mono<CloudFoundryClient> cloudFoundryClient;
private final Mono<RoutingClient> routingClient;
public DefaultDomains(Mono<CloudFoundryClient> cloudFoundryClient, Mono<RoutingClient> routingClient) {
this.cloudFoundryClient = cloudFoundryClient;
this.routingClient = routingClient;
<BUG>}
public Mono<Void> create(CreateDomainRequest request) {</BUG>
return this.cloudFoundryClient
<BUG>.then(cloudFoundryClient -> Mono.when(
Mono.just(cloudFoundryClient),</BUG>
getOrganizationId(cloudFoundryClient, request.getOrganization())

private final Mono<CloudFoundryClient> cloudFoundryClient;
private final Mono<RoutingClient> routingClient;
public DefaultDomains(Mono<CloudFoundryClient> cloudFoundryClient, Mono<RoutingClient> routingClient) {
this.cloudFoundryClient = cloudFoundryClient;
this.routingClient = routingClient;
}
@Override
public Mono<Void> create(CreateDomainRequest request) {
return this.cloudFoundryClient
.then(cloudFoundryClient -> Mono
.when(
Mono.just(cloudFoundryClient),
getOrganizationId(cloudFoundryClient, request.getOrganization())
