private static String getBindAddressAsString(LocatorLauncher launcher) {
      if (InternalLocator.hasLocator()) {
        final InternalLocator locator = InternalLocator.getLocator();
        String bindAddress = locator.getBindAddressString();
        if (bindAddress != null && !bindAddress.isEmpty()) {
          return bindAddress;
        }
      }
      return launcher.getBindAddressAsString();
    }
Unmarshals a LocatorState instance from the JSON String.

@param json a JSON String
@return a LocatorState value unmarshalled from the JSON String.
geode-core/src/main/java/org/apache/geode/distributed/LocatorLauncher.java