@VisibleForTesting
  LoadHolder isCurrentServerMostLoaded(ServerLocation currentServer,
      Map<ServerLocationAndMemberId, LoadHolder> groupServers) {

    // Check if there are keys in the map that contains currentServer.
    LoadHolder currentLH = null;
    for (ServerLocationAndMemberId locationAndMemberId : groupServers.keySet()) {
      if (currentServer.equals(locationAndMemberId.getServerLocation())) {
        currentLH = groupServers.get(locationAndMemberId);
        break;
      }
    }
    if (currentLH == null) {
      return null;
    }
    final float currentLoad = currentLH.getLoad();
    for (Map.Entry<ServerLocationAndMemberId, LoadHolder> loadEntry : groupServers.entrySet()) {
      ServerLocation location = loadEntry.getKey().getServerLocation();
      if (location.equals(currentServer)) {
        continue;
      }
      LoadHolder nextLoadReference = loadEntry.getValue();
      float nextLoad = nextLoadReference.getLoad();
      if (nextLoad > currentLoad) {
        // found a server who has a higher load than us
        return null;
      }
    }
    return currentLH;
  }
If it is most loaded then return its LoadHolder; otherwise return null;
geode-core/src/main/java/org/apache/geode/distributed/internal/LocatorLoadSnapshot.java