void writeHostedLocators(Collection<String> hostedLocators) {
    if (optionalFields == null) {
      return;
    }
    if (hostedLocators != null && !hostedLocators.isEmpty()) {
      String hostedLocatorsString = asCommaDelimitedString(hostedLocators);
      if (hostedLocatorsString != null && !hostedLocatorsString.isEmpty()) {
        optionalFields.setProperty(HOSTED_LOCATORS, hostedLocatorsString);
      }
    }
  }
Write the value for the optional field {@link #HOSTED_LOCATORS}.
geode-core/src/main/java/org/apache/geode/distributed/internal/StartupMessageData.java