collection.insertDocument("document", document);
collection.insertBinary("binary", binary);
XPathQueryResolver service = new XPathQueryResolver();
NodeSet resultSet = service.query(collection, "/test", null, null);
int resultCount = 0;
while (resultSet.hasMoreNodes()) {
resultSet.getNextNode();
resultCount++;