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());
        }
    }
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
Set the content hash on the topic .