// Register MBean if being managed
if (nucleusContext.getJMXManager() != null)
{
ManagementManager mgmtMgr = nucleusContext.getJMXManager();
ManagementServer mgntServer = nucleusContext.getJMXManager().getManagementServer();
this.storeManagerRuntime = new StoreManagerRuntime();
String mbeanName = mgmtMgr.getDomainName() + ":InstanceName=" + mgmtMgr.getInstanceName() +
",Type=" + ClassUtils.getClassNameForClass(storeManagerRuntime.getClass()) +
",Name=StoreManagerRuntime";
mgntServer.registerMBean(this.storeManagerRuntime, mbeanName);
}