protected MBeanServer getMBeanServer() {
    InternalCache cache = getInternalCache();
    SystemManagementService service =
        (SystemManagementService) ManagementService.getExistingManagementService(cache);
    ManagementAgent managementAgent = service.getManagementAgent();
    return managementAgent.getJmxConnectorServer().getMBeanServer();
  }
Gets a reference to the platform MBeanServer running in this JVM process. The MBeanServer
instance constitutes a connection to the MBeanServer. This method returns a security-wrapped
MBean if integrated security is active.

@return a reference to the platform MBeanServer for this JVM process.
@see java.lang.management.ManagementFactory#getPlatformMBeanServer()
@see javax.management.MBeanServer
geode-web/src/main/java/org/apache/geode/management/internal/web/controllers/AbstractCommandsController.java