broker = brokerPool.get(user);
collection = broker.openCollection(path, Lock.WRITE_LOCK);
if(collection == null) {
throw new XMLDBException(ErrorCodes.INVALID_COLLECTION, "Collection " + path + " not found");
}
broker.saveCollection(transaction, collection);
transact.commit(transaction);
} catch(final IOException e) {
transact.abort(transaction);
throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, e.getMessage(), e);
} catch(final EXistException e) {