public synchronized ArrayList<ServerLocation> getServers(String group) {
    if ("".equals(group)) {
      group = null;
    }
    Map<ServerLocationAndMemberId, LoadHolder> groupServers = connectionLoadMap.get(group);
    if (groupServers == null || groupServers.isEmpty()) {
      return null;
    }
    ArrayList<ServerLocation> result = new ArrayList<>();
    for (ServerLocationAndMemberId locationAndMemberId : groupServers.keySet()) {
      result.add(locationAndMemberId.getServerLocation());
    }
    return result;
  }
Pick the least loaded server in the given group

@param group the group, or null or "" if the client has no server group.
@param excludedServers a list of servers to exclude as choices
@return the least loaded server, or null if there are no servers that aren't excluded.
geode-core/src/main/java/org/apache/geode/distributed/internal/LocatorLoadSnapshot.java