final PoolingClientConnectionManager clientConnectionManager) {
final ClientConfig clientConfig = new ClientConfig();
clientConfig.register(jacksonJsonProvider);
clientConfig.property(
ClientProperties.BUFFER_RESPONSE_ENTITY_ON_EXCEPTION, true);
clientConfig.property(ClientProperties.CONNECT_TIMEOUT,
config.getTimeout());
clientConfig.property(ClientProperties.FEATURE_AUTO_DISCOVERY_DISABLE,
true);
clientConfig.property(ClientProperties.FOLLOW_REDIRECTS, false);
clientConfig.property(ClientProperties.JSON_PROCESSING_FEATURE_DISABLE,