docs: public static Document setTopicXMLForError(final BuildData buildData, final BaseTopicWrapper<?> topic,
              final String template) throws BuildProcessingException {
          final String errorContent = buildTopicErrorTemplate(buildData, topic, template);
  
          Document doc = null;
          try {
              doc = XMLUtilities.convertStringToDocument(errorContent);
          } catch (Exception ex) {
              // Exit since we shouldn't fail at converting a basic template
              log.debug("Topic Error Template is not valid XML", ex);
              throw new BuildProcessingException("Failed to convert the Topic Error template into a DOM document");
          }
          if (DocBookUtilities.TOPIC_ROOT_NODE_NAME.equals(doc.getDocumentElement().getNodeName())) {
              DocBookUtilities.setSectionTitle(buildData.getDocBookVersion(), topic.getTitle(), doc);
          }
  
          return doc;
      }