code: public static void updateContentHash(final Topic topic) {
          if (topic.getTopicXML() != null) {
              topic.setTopicContentHash(HashUtilities.generateSHA256(topic.getTopicXML()).toCharArray());
          }
      }
docs: Set the content hash on the topic.
  @param topic The topic to update