code: public HttpClientContext createContext( final String siteId ) throws IndyHttpException
      {
          try
          {
              return httpFactory.createContext( siteConfigLookup.lookup( siteId ) );
          }
          catch ( JHttpCException e )
          {
              throw new IndyHttpException( "Failed to create http client context: %s", e, e.getMessage() );
          }
      }
docs: Create http request context and apply site config.
  @param siteId ID to represent the site. It is generally the hostname of target site.
  @return
  @throws IndyHttpException