code: private SSLServerSocketFactory getSSLServerSocketFactory( String host ) throws Exception
      {
          AtomicReference<Exception> err = new AtomicReference<>();
          KeyStore ks = keystoreMap.computeIfAbsent( host, (k) -> {
              try
              {
                  return getKeyStore(k);
              }
docs: Generate the keystore on-the-fly and initiate SSL socket factory.