Added Java Client Handling for Namespace and Doc Upload