code: private void installModuleMBeanServer()
     {
        try
        {
           Method method = ModuleLoader.class.getDeclaredMethod("installMBeanServer");
           method.setAccessible(true);
           method.invoke(null);
        }
        catch (Exception e)
        {
           throw new ContainerException("Could not install Modules MBean server", e);
        }
     }
docs: Installs the MBeanServer.