parquet-cli/src/main/java/org/apache/parquet/cli/BaseCommand.java
protected static ClassLoader loaderFor(List<String> jars, List<String> paths)
      throws MalformedURLException {
    return AccessController.doPrivileged(new GetClassLoader(urls(jars, paths)));
  }
protected static ClassLoader loaderFor(List<String> jars, List<String> paths)
      throws MalformedURLException {
    return AccessController.doPrivileged(new GetClassLoader(urls(jars, paths)));
  }
Returns a {@link ClassLoader} for a set of jars and directories.

@param jars A list of jar paths
@param paths A list of directories containing .class files
@return a classloader for the jars and paths
@throws MalformedURLException if  a jar or path is invalid