DocumentSet docs = new DocumentSet();
	public ResourceSet queryResource(String resource, String query)		throws XMLDBException {		DocumentSet docs = new DocumentSet();		LocalXMLResource res = (LocalXMLResource) collection.getResource(resource);		if (res == null)			throw new XMLDBException(				ErrorCodes.INVALID_RESOURCE,				"resource " + resource + " not found");		DBBroker broker = null;		try {		    broker = brokerPool.get(user);		    docs.add(res.getDocument(broker, false));		} catch (EXistException e) {            throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, e.getMessage(), e);        } finally {		    brokerPool.release(broker);		}		return doQuery(query, docs, null, null);	}