code: @SuppressWarnings("deprecation")
      private static synchronized HttpClient initHttpClient(final BOSHClientConfig config) {
          // Create and initialize HTTP parameters
          org.apache.http.params.HttpParams params = new org.apache.http.params.BasicHttpParams();
          org.apache.http.conn.params.ConnManagerParams.setMaxTotalConnections(params, 100);
          org.apache.http.params.HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
          org.apache.http.params.HttpProtocolParams.setUseExpectContinue(params, false);
          if (config != null &&
                  config.getProxyHost() != null &&
                  config.getProxyPort() != 0) {
              HttpHost proxy = new HttpHost(
                      config.getProxyHost(),
                      config.getProxyPort());
              params.setParameter(org.apache.http.conn.params.ConnRoutePNames.DEFAULT_PROXY, proxy);
          }
  
          // Create and initialize scheme registry 
          org.apache.http.conn.scheme.SchemeRegistry schemeRegistry = new org.apache.http.conn.scheme.SchemeRegistry();
          schemeRegistry.register(
                  new org.apache.http.conn.scheme.Scheme("http", org.apache.http.conn.scheme.PlainSocketFactory.getSocketFactory(), 80));
              org.apache.http.conn.ssl.SSLSocketFactory sslFactory = org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory();
              sslFactory.setHostnameVerifier(org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
              schemeRegistry.register(
                      new org.apache.http.conn.scheme.Scheme("https", sslFactory, 443));
  
          // Create an HttpClient with the ThreadSafeClientConnManager.
          // This connection manager must be used if more than one thread will
          // be using the HttpClient.
          org.apache.http.conn.ClientConnectionManager cm = new org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager(params, schemeRegistry);
          return new org.apache.http.impl.client.DefaultHttpClient(cm, params);
      }
docs: Package-private methods: