// since we assume we are called in the proper deployment order, this should not fail
// if we are called when hot-deploying a plugin whose dependencies aren't deployed, this will fail
PluginManagerLocal pluginMgr = LookupUtil.getPluginManager();
pluginMgr.registerPlugin(plugin, pluginDescriptor, localPluginFile, forceUpdate);
if (addition!=null) {
GroupDefinitionManagerLocal groupDefMgr = LookupUtil.getGroupDefinitionManager();
groupDefMgr.updateGroupsByCannedExpressions(pluginName, addition.getExpressions());
}
} catch (Exception e) {
log.error("Failed to register RHQ plugin file [" + deploymentInfo.url + "]", e);
}
}