docs: public static void establishSSLContext(HttpClient client,
                                             int port,
                                             LibertyServer server,
                                             String ksPath,
                                             String ksPassword,
                                             String tsPath,
                                             String tsPassword,
                                             String sslProtocol) {
          String methodName = "establishSSLContext";
          Log.info(logClass, methodName, "ksPath : " + ksPath + ", tsPath : " + tsPath);
          FileInputStream ksStream = null;
          FileInputStream tsStream = null;
          try {
              int sslPort;
              if (server != null) {
                  sslPort = server.getHttpDefaultSecurePort();
              } else {
                  sslPort = port;
              }
  
              try {
                  KeyManager keyManagers[] = null;
                  if (ksPath != null) {
                      KeyManagerFactory kmFactory =
                                      KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
  
                      File ksFile = new File(ksPath);
                      KeyStore keyStore = KeyStore.getInstance("JKS");
                      ksStream = new FileInputStream(ksFile);
                      keyStore.load(ksStream, ksPassword.toCharArray());
  
                      kmFactory.init(keyStore, ksPassword.toCharArray());
                      keyManagers = kmFactory.getKeyManagers();
                      Log.info(logClass, methodName, "KeyManager is configured properly.");
  
                  }
  
                  TrustManager[] trustManagers = null;
                  if (tsPath != null) {
                      TrustManagerFactory tmFactory =
                                      TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
  
                      File tsFile = new File(tsPath);
                      KeyStore trustStore = KeyStore.getInstance("JKS");
                      tsStream = new FileInputStream(tsFile);
                      trustStore.load(tsStream, tsPassword.toCharArray());
  
                      tmFactory.init(trustStore);
                      trustManagers = tmFactory.getTrustManagers();
                      Log.info(logClass, methodName, "TrustManager is configured properly.");
                  }
                  if (trustManagers == null) {
                      trustManagers = new TrustManager[] { createTrustAllTrustManager() };
                      Log.info(logClass, methodName, "Default AllTrustManager is configured properly.");
                  }
  
                  if (sslProtocol == null)
                      sslProtocol = "TLSv1.2";
  
                  SSLContext ctx = SSLContext.getInstance(sslProtocol);
                  ctx.init(keyManagers, trustManagers, null);
                  SSLSocketFactory socketFactory = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
                  Scheme sch = new Scheme("https", sslPort, socketFactory);
                  client.getConnectionManager().getSchemeRegistry().register(sch);
              } catch (Exception e) {
                  throw new RuntimeException("Unable to establish SSLSocketFactory", e);
              }
          } finally {
              try {
                  if (ksStream != null) {
                      ksStream.close();
                  }
              } catch (IOException e) {
                  e.printStackTrace();
              }
              try {
                  if (tsStream != null) {
                      tsStream.close();
                  }
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }
      }