code: public static String convertDocumentToCDATAFormattedString(final Document doc, final XMLFormatProperties xmlFormatProperties) {
          return XMLUtilities.wrapStringInCDATA(convertDocumentToFormattedString(doc, xmlFormatProperties));
      }
docs: Convert a DOM Document to a Formatted String representation and wrap it in a CDATA element.
  
  @param doc                 The DOM Document to be converted and formatted.
  @param xmlFormatProperties The XML Formatting Properties.
  @return The converted XML String representation.