src/main/java/org/jboss/pressgang/ccms/model/utils/TopicUtilities.java
public static void updateContentHash(final Topic topic) {
        if (topic.getTopicXML() != null) {
            topic.setTopicContentHash(HashUtilities.generateSHA256(topic.getTopicXML()).toCharArray());
        }
    }
public static void updateContentHash(final Topic topic) {
        if (topic.getTopicXML() != null) {
            topic.setTopicContentHash(HashUtilities.generateSHA256(topic.getTopicXML()).toCharArray());
        }
    }
Set the content hash on the topic.
@param topic The topic to update