protected List<DiscussionRecord> addToDiscussionForAsset(String assetId,
String comment) {
RulesRepository repository = getRulesRepository();
AssetItem asset = repository.loadAssetByUUID( assetId );
Discussion dp = new Discussion();
List<DiscussionRecord> discussion = dp.fromString( asset.getStringProperty( Discussion.DISCUSSION_PROPERTY_KEY ) );
discussion.add( new DiscussionRecord( repository.getSession().getUserID(),
StringEscapeUtils.escapeXml( comment ) ) );
asset.updateStringProperty( dp.toString( discussion ),
Discussion.DISCUSSION_PROPERTY_KEY,
false );
repository.save();
push( "discussion",