collection.allDocs(broker, new DocumentSet(), true);
collection.allDocs(broker, new DocumentSet(), true, true);
	public int xupdate(String sessionId, String collectionName, String xupdate)		throws RemoteException {		DBBroker broker = null;		Session session = getSession(sessionId);		try {			broker = pool.get(session.getUser());			Collection collection = broker.getCollection(collectionName);			if (collection == null)				throw new RemoteException(					"collection " + collectionName + " not found");			DocumentSet docs =				collection.allDocs(broker, new DocumentSet(), true);			XUpdateProcessor processor =				new XUpdateProcessor(broker, docs);			Modification modifications[] =				processor.parse(new InputSource(new StringReader(xupdate)));			long mods = 0;			for (int i = 0; i < modifications.length; i++) {				mods += modifications[i].process();				broker.flush();			}			return (int) mods;		} catch (ParserConfigurationException e) {			throw new RemoteException(e.getMessage(), e);		} catch (IOException e) {			throw new RemoteException(e.getMessage(), e);		} catch (EXistException e) {			throw new RemoteException(e.getMessage(), e);		} catch (SAXException e) {			throw new RemoteException(e.getMessage(), e);		} catch (PermissionDeniedException e) {			throw new RemoteException(e.getMessage(), e);		} catch (XPathException e) {			throw new RemoteException(e.getMessage(), e);		} catch (LockException e) {		    throw new RemoteException(e.getMessage(), e);        } finally {			pool.release(broker);		}	}