Java Client Handling for Namespace and Doc