Java Example
CmAbstractPersistable tag = Factory.CmAbstractPersistable.createInstance(os,"ClbTag");
tag.getProperties().putValue("ClbTagValue","LoanTemplate");
tag.getProperties().putObjectValue("ClbTaggedDocument",documentObj);
tag.save(RefreshMode.REFRESH);
C# Example
ICmAbstractPersistable tag = Factory.CmAbstractPersistable.CreateInstance(os,"ClbTag");
tag.Properties["ClbTagValue"]="LoanTemplate";
tag.Properties["ClbTaggedDocument"]=documentObj;
tag.Save(RefreshMode.REFRESH);