docs = parent.collection.allDocs(user);
docs = parent.collection.allDocs(user, true);
	public long updateResource(String resource, String xupdate)		throws XMLDBException {		DocumentSet docs = null;		DBBroker broker = null;		try {			broker = pool.get();			if (resource == null) {				docs = parent.collection.allDocs(user);				System.out.println("searching " + docs.getLength() + " docs.");			} else {				docs = new DocumentSet();				String id = parent.getName() + '/' + resource;				DocumentImpl doc = parent.collection.getDocument(id);				docs.add(doc);			}			XUpdateProcessor processor = new XUpdateProcessor(pool, user);			Modification modifications[] =				processor.parse(new InputSource(new StringReader(xupdate)));			long mods = 0;			for (int i = 0; i < modifications.length; i++) {				mods += modifications[i].process(docs);			}			broker.flush();            broker.sync();			return mods;		} catch (ParserConfigurationException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(),e);		} catch (IOException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(),e);		} catch (SAXException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(),e);		} catch (PermissionDeniedException e) {			throw new XMLDBException(				ErrorCodes.PERMISSION_DENIED,				e.getMessage());		} catch (EXistException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(),e);		} finally {			pool.release(broker);		}	}