public boolean removeProxyFromMap(ObjectName objectName, LockServiceMXBean proxy) {
    if (mapOfProxy != null) {
      mapOfProxy.remove(objectName);
      setSize = mapOfProxy.values().size();
      if (mapOfProxy.values().size() == 0) {
        setSize = 0;
        return true;

      }
    }
    return false;
  }
@param objectName name of the MBean
@param proxy reference to the proxy
@return true if no proxies left for this aggregator to work on
geode-core/src/main/java/org/apache/geode/management/internal/beans/DistributedLockServiceBridge.java