code: private static Object loadExtension(Extension extension, ClassLoaderPlugin classLoaderPlugin)
     {
        try
        {
           Class<?> c = classLoaderPlugin.loadClass(extension.getClassName(),
                 extension.getModuleName(), extension.getModuleSlot());
           return c.newInstance();
        }
        catch (Throwable t)
        {
           log.tracef("Throwable while loading %s using own classloader: %s", extension.getClassName(), t.getMessage());
        }
  
        return null;
     }
docs: Load the class
  @param extension The extension metadata to load as class instance
  @param classLoaderPlugin class loader plugin to use to load class
  @return The object