protected void appendConfiguration(StringBuilder sb) {
    ConfigurationParameter[] params = getConfiguration();
    for (ConfigurationParameter param : params) {
      if (!param.isModifiable()) {
        continue;
      }

      String name = param.getName();
      String value = param.getValueAsString();

      if (value != null && !value.equals("")) {
        if (name.equals(LOCATORS)) {
          // Use the new locator syntax so that is plays nicely with
          // rsh. See bug 32306.
          String locator = value;
          int firstBracket = locator.indexOf('[');
          int lastBracket = locator.indexOf(']');

          if (firstBracket > -1 && lastBracket > -1) {
            String host = locator.substring(0, firstBracket);
            String port = locator.substring(firstBracket + 1, lastBracket);
            locator = host + ":" + port;
          }

          sb.append(" ");
          sb.append(name);
          sb.append("=");
          sb.append(locator);

        } else {
          sb.append(" ");
          sb.append(name);
          sb.append("=");
          sb.append(value);
        }
      }
    }
  }
Appends configuration information to a <code>StringBuilder</code> that contains a command line.
Handles certain configuration parameters specially.
geode-core/src/main/java/org/apache/geode/admin/internal/ManagedSystemMemberImpl.java