@RequiredPermission(Permission.MANAGE_SETTINGS)
public ControlResults invokeServerPluginControl(Subject subject, PluginKey pluginKey, String controlName,
Configuration params) throws Exception {
ServerPluginServiceMBean serverPluginService = LookupUtil.getServerPluginService();
MasterServerPluginContainer master = serverPluginService.getMasterPluginContainer();
if (master != null) {
AbstractTypeServerPluginContainer pc = master.getPluginContainerByPlugin(pluginKey);
if (pc != null) {
ControlResults results = pc.invokePluginControl(pluginKey, controlName, params);
return results;
} else {
throw new Exception("There is no known plugin named [" + pluginKey + "]. Cannot invoke [" + controlName