if (tranCount.get()<0) throw new RuntimeException("Commit without transaction!");
if (tranCount.get()==0) {
db.commit();
db.getTransaction().close();
}
}else throw new NoTransactionException("There is no open transaction to commit");
if (Logger.isDebugEnabled()) Logger.debug("Commit Transaction: transaction count -after-: " + tranCount.get());
}