throw new EXistException("collection " + collUri + " not found");
}
//TODO : register a lock (which one ?) in the transaction ?
final DocumentSet docs = collection.allDocs(broker, new DefaultDocumentSet(), true);
final XUpdateProcessor processor = new XUpdateProcessor(broker, docs, AccessContext.XMLRPC);
final Modification modifications[] = processor.parse(new InputSource(new StringReader(xupdate)));
long mods = 0;
for (int i = 0; i < modifications.length; i++) {
mods += modifications[i].process(transaction);
broker.flush();
}