PluginManagerLoader pluginLoader = (PluginManagerLoader) application
.getClassLoader()
.loadClass(PLUGIN_LOADER_CLASS)
.getConstructor(GrailsApplication.class)
.newInstance(application);
pluginManager = pluginLoader.loadPlugins();
}
else {
ClassLoader classLoader = application.getClassLoader();
List<Class<?>> classes = new ArrayList<Class<?>>();