// Need to split path into collection and document name
XmldbURI collName = xmldbUri.removeLastSegment();
XmldbURI docName = xmldbUri.lastSegment();
// Open collection if possible, else abort
collection = broker.openCollection(collName, Lock.WRITE_LOCK);
if (collection == null) {
LOG.debug("Collection does not exist");
txnManager.abort(txn);
return;
}