public void commit() {
// System.out.println("Committing transaction with update size " + getUpdateQueue().size());
isCommitting_ = true;
Queue<DatabaseDescendant> uq = getUpdateQueue();
// synchronized (uq) {
DatabaseDescendant next = uq.poll();
while (next != null) {
if (next instanceof Document) {
boolean result = ((Document) next).save();
if (!result) {
// System.out.println("Transaction document save failed.");