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