{
getManager().activatePlugin(ext.getDeclaringPluginDescriptor().getId());
}
Class<?> menuCls = loadPlugin(ext);
// Create Tool instance.
MenuProviderInterface menuProvider = (MenuProviderInterface) menuCls.newInstance();
// Initialize class instance according to interface contract.
menuProvider.init(menu);
} catch (Throwable t) {
displayPluginLoadErrorMsg(t, ext);
log.error("Error while trying to initialize menu provider plugin", t);
}
}