// Get plug-in class loader.
final ClassLoader classLoader = getManager().getPluginClassLoader(ext.getDeclaringPluginDescriptor());
// Load Tool class.
final Class<?> eventHandlerCls = classLoader.loadClass(ext.getParameter("class").valueAsString());
// Create Tool instance.
final EventHandlerProviderInterface eventHandlerProvider = (EventHandlerProviderInterface) eventHandlerCls.newInstance();
// Initialize class instance according to interface contract.
eventHandlerProvider.init(graphView);
} catch (final Throwable t) {
displayPluginLoadErrorMsg(t, ext);
}
}
}