code: private String getPropertyValueToWrite(Object obj) {
  
          String value;
          String valueToWrite = null;
          if (obj instanceof List<?>) {
              String[] values = {};
              values = CmsCollectionsGenericWrapper.list(obj).toArray(values);
              // write it
              valueToWrite = "\\\n" + createValueString(values);
          } else {
              value = String.valueOf(obj).trim();
              // escape commas and equals in value
              value = CmsStringUtil.substitute(value, ",", "\\,");
              // value = CmsStringUtil.substitute(value, "=", "\\=");
              // write it
              valueToWrite = value;
          }
          return valueToWrite;
      }
docs: Returns the text which should be written to the configuration file for a given property value.<p>
  
  @param obj the property value
  
  @return the text to write for that property value