}
protected List<DiscussionRecord> addToDiscussionForAsset(String assetId,
String comment) {
AssetItem asset = rulesRepository.loadAssetByUUID(assetId);
Discussion dp = new Discussion();
List<DiscussionRecord> discussion = dp.fromString(asset.getStringProperty(Discussion.DISCUSSION_PROPERTY_KEY));
discussion.add(new DiscussionRecord(rulesRepository.getSession().getUserID(),
StringEscapeUtils.escapeXml(comment)));
//Adding a new Discussion has *never* updated the Last Modified Date.
//clearAllDiscussionsForAsset has been made consistent with this behaviour.
asset.updateStringProperty(dp.toString(discussion),
Discussion.DISCUSSION_PROPERTY_KEY,
false);
rulesRepository.save();
push("discussion",