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

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