docs: private HttpClient createPooledClient() {
      HttpParams connMgrParams = new BasicHttpParams();
      
      SchemeRegistry schemeRegistry = new SchemeRegistry();
      schemeRegistry.register(new Scheme(HTTP_SCHEME, PlainSocketFactory.getSocketFactory(), HTTP_PORT));
      schemeRegistry.register(new Scheme(HTTPS_SCHEME, SSLSocketFactory.getSocketFactory(), HTTPS_PORT));
      
      // All connections will be to the same endpoint, so no need for per-route configuration.
      // TODO See how this does in the presence of redirects.
      ConnManagerParams.setMaxTotalConnections(connMgrParams, poolSize);
      ConnManagerParams.setMaxConnectionsPerRoute(connMgrParams, new ConnPerRouteBean(poolSize));
      
      ClientConnectionManager ccm = new ThreadSafeClientConnManager(connMgrParams, schemeRegistry);
      
      HttpParams httpParams = new BasicHttpParams();
      HttpProtocolParams.setUseExpectContinue(httpParams, false);
      ConnManagerParams.setTimeout(httpParams, acquireTimeout * 1000);
      return new DefaultHttpClient(ccm, httpParams);
    }