class CloudFoundryApplicationPlatform extends CloudFoundryPlatform {

    public void rescaleApplication (String applicationName, int instances) {
        ScaleApplicationRequest scaleApplicationRequest = ScaleApplicationRequest.builder()
                                                                                 .name(applicationName)
                                                                                 .instances(instances)
                                                                                 .build();
        cloudFoundryOperations.applications().scale(scaleApplicationRequest).block();
    }

    @Autowired public  CloudFoundryApplicationPlatform();

}