code: public static HttpContext getContext(HttpHost httpHost)
      {
          AuthCache authCache = new BasicAuthCache();
          authCache.put(httpHost, new BasicScheme());
  
          HttpContext context = new BasicHttpContext();
          context.setAttribute(ClientContext.AUTH_CACHE, authCache);
          return context;
      }
docs: Gets the context.
  
  @param httpHost
  the http host
  @return the context