STJSGenerationPlugin<JS> plugin;
try {
plugin = (STJSGenerationPlugin<JS>) Class.forName(value).newInstance();
}
catch (InstantiationException e) {
throw new STJSRuntimeException(e);
}
catch (IllegalAccessException e) {
throw new STJSRuntimeException(e);
}
catch (ClassNotFoundException e) {
throw new STJSRuntimeException(e);
}
if (plugin.loadByDefault()) {
plugin.contributeCheckVisitor(checkVisitor);
plugin.contributeWriteVisitor(writerVisitor);
mandatoryPlugins.put(key, plugin);