code: public HttpHost getProxy(ProxyConfig proxyConfig) {
  		if (proxyConfig == null) {
  			return null;
  		}
  		String host = proxyConfig.getHost();
  		String port = proxyConfig.getPort();
  		HttpHost proxy = null;
  		if (!host.isEmpty() && !port.isEmpty()) {
  			proxy = new HttpHost(host, Integer.parseInt(port));
  
  		}
  		return proxy;
  	}
docs: Method to get proxy
  
  @return returns HttpHost