// Get the Xindice collection object from the XML:DB collection wrapper.
Collection col = ((CollectionImpl) collection).getServerObject();
ResourceSet result = null;
try {
EncodedBuffer buffer = col.queryCollection("XPath", query,
getNamespaces(), syms.getLastModified());
if ( buffer.stamp != -1 ) {
SymbolTable s = syms.getSymbols(buffer);
result = new ResourceSetImpl(collection, s, buffer.buf);