private static String toString(String attName, java.lang.Object obj) {
    if (okToDisplayPropertyValue(attName)) {
      if (obj == null) {
        return "";
      }
      if (obj instanceof InetAddress) {
        return toHostString(obj);
      }
      return obj.toString();
    } else {
      return OBFUSCATED_STRING;
    }
  }
Returns string representation of the specified object with special handling for InetAddress.

@param obj the object to convert to string

@return string representation of the specified object
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java