class CloudFoundryService implements CloudService {

    @Bean
    @RefreshScope
    ConnectionContext connectionContext () {
        DefaultConnectionContext.Builder connectionContextBuilder;
        connectionContextBuilder = DefaultConnectionContext.builder().apiHost(apiHost).port(port);
        proxyConfiguration().ifPresent(connectionContextBuilder::proxyConfiguration);
        return connectionContextBuilder.build();
    }

}