.build());
}
private static Mono<CreateRouteResponse> requestCreateRoute(CloudFoundryClient cloudFoundryClient, String domainId, String host, String path, Integer port, Boolean randomPort, String spaceId) {
org.cloudfoundry.client.v2.routes.CreateRouteRequest.Builder builder = org.cloudfoundry.client.v2.routes.CreateRouteRequest.builder();
if (randomPort != null && randomPort) {
<BUG>builder.generatePort(true);
} else {
builder.port(port);

}</BUG>
return cloudFoundryClient.routes()

.build());
}
private static Mono<CreateRouteResponse> requestCreateRoute(CloudFoundryClient cloudFoundryClient, String domainId, String host, String path, Integer port, Boolean randomPort, String spaceId) {
org.cloudfoundry.client.v2.routes.CreateRouteRequest.Builder builder = org.cloudfoundry.client.v2.routes.CreateRouteRequest.builder();
if (randomPort != null && randomPort) {
builder.generatePort(true);
} else if (port != null) {
builder.port(port);
} else {
builder.host(host);
builder.path(path);
}
return cloudFoundryClient.routes()
