private static ClassLoader createNarClassLoader(final File narDirectory,final ClassLoader parentClassLoader) throws IOException, ClassNotFoundException {
  logger.debug("Loading NAR file: " + narDirectory.getAbsolutePath());
  final ClassLoader narClassLoader=new NarClassLoader(narDirectory,parentClassLoader);
  logger.info("Loaded NAR file: " + narDirectory.getAbsolutePath() + " as class loader "+ narClassLoader);
  return narClassLoader;
}

private static ClassLoader createNarClassLoader ( final File narDirectory , final ClassLoader parentClassLoader ) throws IOException , ClassNotFoundException { logger . debug ( "Loading NAR file: " + narDirectory . getAbsolutePath ( ) ) ; final ClassLoader narClassLoader = new NarClassLoader ( narDirectory , parentClassLoader ) ; logger . info ( "Loaded NAR file: " + narDirectory . getAbsolutePath ( ) + " as class loader " + narClassLoader ) ; return narClassLoader ; }
creates a new narclassloader . the parentclassloader may be null .
