code: public static void setTopicNodeXMLForError(final BuildData buildData, final ITopicNode topicNode,
              final String template) throws BuildProcessingException {
          final BaseTopicWrapper<?> topic = topicNode.getTopic();
          final Document doc = setTopicXMLForError(buildData, topic, template);
          processTopicID(buildData, topicNode, doc);
          topicNode.setXMLDocument(doc);
      }
docs: Sets the XML of the topic in the content spec to the error template provided.
  
  @param buildData Information and data structures for the build.
  @param topicNode The topic node to be updated as having an error.
  @param template  The template for the Error Message.
  @throws BuildProcessingException Thrown if an unexpected error occurs during building.