code: public static DynamicClassLoader getDynamicClassLoader(ClassLoader loader)
    {
      for (; loader != null; loader = loader.getParent()) {
        if (loader instanceof DynamicClassLoader) {
          return (DynamicClassLoader) loader;
        }
      }
  
      return null;
    }
docs: Returns the topmost dynamic class loader.
  
  @param loader the context loader