docs: public static Element appendMultilineText(Document htmldoc, Element parent, String text) {
      String[] parts = text != null ? text.split("\n") : null;
      if(parts == null || parts.length == 0) {
        return parent;
      }
      parent.appendChild(htmldoc.createTextNode(parts[0]));
      for(int i = 1; i < parts.length; i++) {
        parent.appendChild(htmldoc.createElement(HTML_BR_TAG));
        parent.appendChild(htmldoc.createTextNode(parts[i]));
      }
      return parent;
    }