Please help with sample code in Java or C# for adding document with categories and attribute in content server 10.5 using REST API.