private static Mono<AbstractApplicationResource> requestGetApplication(CloudFoundryClient cloudFoundryClient, String applicationId) {
return cloudFoundryClient.applicationsV2()
.get(org.cloudfoundry.client.v2.applications.GetApplicationRequest.builder()
.applicationId(applicationId)
.build())
<BUG>.map(OperationUtils.<GetApplicationResponse, AbstractApplicationResource>cast());
}</BUG>
private static Flux<ServiceBindingResource> requestListServiceBindings(CloudFoundryClient cloudFoundryClient, String applicationId) {
return PaginationUtils
.requestClientV2Resources(page -> cloudFoundryClient.applicationsV2()

private static Mono<AbstractApplicationResource> requestGetApplication(CloudFoundryClient cloudFoundryClient, String applicationId) {
return cloudFoundryClient.applicationsV2()
.get(org.cloudfoundry.client.v2.applications.GetApplicationRequest.builder()
.applicationId(applicationId)
.build())
.cast(AbstractApplicationResource.class);
}
private static Flux<ServiceBindingResource> requestListServiceBindings(CloudFoundryClient cloudFoundryClient, String applicationId) {
return PaginationUtils
.requestClientV2Resources(page -> cloudFoundryClient.applicationsV2()
