e.printStackTrace();
if (txn != null) {tm.abort(txn);}
} finally {
tm.close(txn);
if (db != null)
{db.release( broker );}
}
}
private void moveResource(DBBroker broker, Txn txn, DocumentImpl doc, Collection source, Collection destination, XmldbURI newName) throws PermissionDeniedException, LockException, IOException, SAXException, EXistException {