code: public static DynamicClassLoader create(ClassLoader parent, PathImpl dir)
    {
      DynamicClassLoader loader = new DynamicClassLoader(parent);
  
      TreeLoader treeLoader = new TreeLoader(loader, dir);
  
      loader.addLoader(treeLoader);
  
      loader.init();
      
      return loader;
    }
docs: Create a new class loader
  
  @param parent parent class loader
  @param dir directories which can handle dynamic jar addition