code: public  HttpClient getHttpClient(SystemConfiguration config) {
  		HttpClient httpclient = new HttpClient(theConnectionManager);
  
  		// Wait for 2 seconds to get a connection from pool
  		httpclient.getParams().setParameter("http.connection-manager.timeout", 2000L); 
  
  		String host = config.getValue(Property.GUS_PROXY_HOST.getName(), Property.GUS_PROXY_HOST.getDefaultValue());
  
  		if (host != null && host.length() > 0) {
  			httpclient.getHostConfiguration().setProxy(host,
  					Integer.parseInt(config.getValue(Property.GUS_PROXY_PORT.getName(), Property.GUS_PROXY_PORT.getDefaultValue())));
  		}
  		return httpclient;
  	}
docs: Get HttpClient with proper proxy and timeout settings.
  
  @param   config  The system configuration.  Cannot be null.
  
  @return  HttpClient