ApplicationRef appRef = verifyActionMBean(actionMBeanName, domain, ctxToUse);
if (appRef != null) {
Applications apps = domain.getApplications();
Mbean definedMBean = apps.getMbeanByName(actionMBeanName);
if (appRef.isEnabled() && definedMBean.isEnabled() ) {
if ((definedMBean.getObjectType()).equals(USER_DEFINED_TYPE)) {
actionObjName = registerAction(ruleEvent,actionMBeanName,
definedMBean,false,null);
} else {
// system defined, need to explictly load
actionObjName = registerAction(ruleEvent,actionMBeanName,