code: public static SSLContext sslContext(AbstractConfig config, String key) {
      final String trustManagerFactoryType = config.getString(key);
      try {
        return SSLContext.getInstance(trustManagerFactoryType);
      } catch (NoSuchAlgorithmException e) {
        ConfigException exception = new ConfigException(
            key,
            trustManagerFactoryType,
            "Unknown Algorithm."
        );
        exception.initCause(e);
        throw exception;
      }
    }
docs: Method will create a SSLContext based on the Algorithm type specified in the config.
  
  @param config Config to read from.
  @param key    Key to read from
  @return SSLContext based on the type specified in the config.