if (mbeanServer == null)
throw new RuntimeException(ejbName + "is defined as an XMBean, but the MBeanServer has not been initialized for it");
String objname = service.objectName();
delegateObjectName = (objname == null || objname.equals("")) ?
new ObjectName(getObjectName().getCanonicalName() + ",type=ManagementInterface") : new ObjectName(service.objectName());
delegate = new ServiceMBeanDelegate(mbeanServer, this, service.xmbean(), delegateObjectName);
getDeployment().getKernelAbstraction().installMBean(delegateObjectName, getDependencyPolicy(), delegate);
}