!location.startsWith(HTTPS_WITH_SLASH)) {
location = HTTP_WITH_SLASH + location;
}
HostConfiguration hostConfig = new HostConfiguration();
hostConfig.setHost(new URI(location));
if (Validator.isNotNull(PROXY_HOST) && PROXY_PORT > 0) {
hostConfig.setProxy(PROXY_HOST, PROXY_PORT);
}
client.setHostConfiguration(hostConfig);
client.setConnectionTimeout(5000);
client.setTimeout(5000);