.flatMap(serviceInstanceId -> requestCreateServiceBinding(application.getId(), serviceInstanceId))
.then();
}
private Mono<Application> createApplication(AppDeploymentRequest request, String spaceId) {
AppDefinition definition = request.getDefinition();
<BUG>return requestCreateApplication(this.deploymentProperties.getBuildpack(), getEnvironmentVariables(definition.getProperties()), definition.getName(), spaceId);
</BUG>
}
private Mono<String> createDroplet(String packageId, AppDeploymentRequest request) {
<BUG>return requestStagePackage(getDisk(request), getMemory(request), packageId)
</BUG>
.map(Droplet::getId);

.flatMap(serviceInstanceId -> requestCreateServiceBinding(application.getId(), serviceInstanceId))
.then();
}
private Mono<Application> createApplication(AppDeploymentRequest request, String spaceId) {
AppDefinition definition = request.getDefinition();
return requestCreateApplication(buildpack(request), getEnvironmentVariables(definition.getProperties()), definition.getName(), spaceId);
}
private Mono<String> createDroplet(String packageId, AppDeploymentRequest request) {
return requestStagePackage(diskQuota(request), memory(request), packageId)
.map(Droplet::getId);
