static void addServerLocator(final @NotNull Integer distributedSystemId,
      final @NotNull LocatorMembershipListener locatorListener,
      final @NotNull DistributionLocatorId locator) {
    computeIfAbsent(locatorListener.getAllServerLocatorsInfo(), distributedSystemId,
        k -> new CopyOnWriteHashSet<>()).add(locator.marshalForClients());
  }
Add given locator to the locatorListener's allServerLocatorsInfo map.
geode-wan/src/main/java/org/apache/geode/cache/wan/internal/client/locator/LocatorHelper.java