code: public static void setUpExample(DatabaseClient client)
      throws ResourceNotFoundException, ForbiddenUserException, FailedRequestException
    {
      XMLDocumentManager docMgr = client.newXMLDocumentManager();
  
      StringHandle handle = new StringHandle();
  
      docMgr.write("/batch/read1.xml",   handle.with("<read1/>"));
      DocumentMetadataHandle meta2 = new DocumentMetadataHandle();
      meta2.getCollections().add("/batch/collection2");
      docMgr.write("/batch/read2.xml",   meta2, handle.with("<read2/>"));
      docMgr.write("/batch/delete1.xml", handle.with("<delete1/>"));
    }
docs: create some documents to work with