public AbstractGrailsPlugin(Class<?> pluginClass, GrailsApplication application) {
Assert.notNull(pluginClass, "Argument [pluginClass] cannot be null");
Assert.isTrue(pluginClass.getName().endsWith(TRAILING_NAME),
"Argument [pluginClass] with value [" + pluginClass +
"] is not a Grails plugin (class name must end with 'GrailsPlugin')");
this.application = new LegacyGrailsApplication(application);
this.pluginClass = pluginClass;
}