Java Example
CmAbstractPersistable comment = Factory.CmAbstractPersistable.createInstance(os,"ClbDocumentComment");
String commentText="Modified section 3.1.6";
comment.getProperties().putValue("ClbCommentText",commentText);
comment.getProperties().putObjectValue("ClbCommentedDocument",documentObj);
comment.save(RefreshMode.REFRESH);
C# Example
ICmAbstractPersistable comment = Factory.CmAbstractPersistable.CreateInstance(os, "ClbDocumentComment");
String commentText = "Modified section 3.1.6";
comment.Properties["ClbCommentText"] = commentText;
comment.Properties["ClbCommentedDocument"] = documentObj;
comment.Save(RefreshMode.REFRESH);