public static ManagementService getManagementService(Cache cache) {
    return BaseManagementService
        .getManagementService(((InternalCache) cache).getCacheForProcessingClientRequests());
  }
Returns a newly created or the existing instance of the management service for a cache.

@param cache Cache for which to get the management service.
@return a newly created or the existing instance of the management service for a cache
geode-core/src/main/java/org/apache/geode/management/ManagementService.java