if (omfContext.getManagement() != null)
{
// register MBean in MbeanServer
ManagementServer mgmtServer = this.omfContext.getManagement().getManagementServer();
connMgrRuntime = new ConnectionManagerRuntime();
String mbeanName = omfContext.getDomainName() + ":InstanceName=" + omfContext.getInstanceName() +
",Type=" + ClassUtils.getClassNameForClass(connMgrRuntime.getClass()) +
",Name=ConnectionManagerRuntime";
mgmtServer.registerMBean(connMgrRuntime, mbeanName);
}