// This is commented since, jersey has major problem (since ~2.5) - it blocks the calling thread !!!
// When this bug will be fixed we should uncomment this line in order to enable a lot of concurrent open requsets
// register(singleThreadPool, RequestExecutorProvider.class).
property(ClientProperties.ASYNC_THREADPOOL_SIZE, 20);
if (configuration != null)
config.loadFrom(configuration);
if (config.getConnectorProvider() == null)
config.connectorProvider(new JettyConnectorProvider());
return config;
}