code: protected static String propertiesToString(Properties properties)
      {
          StringWriter stringWriter = new StringWriter();
  
          String comments = Properties.class.getName();
          try {
              properties.store(stringWriter, comments);
          }
          catch (IOException e) {
              throw new RuntimeException(e);
          }
  
          stringWriter.flush();
          String result = stringWriter.toString();
  
          // let's get rid of the timestamp from the properties as it cannot be disabled
          // in the Properties implementation
          List<String> lines = new ArrayList<>(Arrays.asList(result.split("\n")));
          // Remove the second line
          lines.remove(1);
          // join back
          result = StringUtils.join(lines, "\n");
  
          return result;
      }
docs: Serializes properties to String
  
  @param properties properties
  @return string