public static ManagementService getExistingManagementService(InternalCache cache) {
    synchronized (instances) {
      BaseManagementService service = instances.get(cache.getCacheForProcessingClientRequests());
      return service;
    }
  }
Returns a ManagementService to use for the specified Cache.

@param cache defines the scope of resources to be managed
geode-core/src/main/java/org/apache/geode/management/internal/BaseManagementService.java