docs: public static Properties stringToProperties(String str, Properties props) {
      String[] propsStr = str.trim().split(",\\s*");
      for (String term : propsStr) {
        int divLoc = term.indexOf('=');
        String key;
        String value;
        if (divLoc >= 0) {
          key = term.substring(0, divLoc).trim();
          value = term.substring(divLoc + 1).trim();
        } else {
          key = term.trim();
          value = "true";
        }
        props.setProperty(key, value);
      }
      return props;
    }