protected void commitTransaction() throws Exception {
BitronixTransactionManager tm = TransactionManagerServices.getTransactionManager();
if (tm.getStatus() != Status.STATUS_ACTIVE) {
throw new RuntimeException("Transaction is not active and cannot be committed! Please start a new transaction first!");
}
tm.commit();
}
protected void rollbackTransaction() throws Exception {
BitronixTransactionManager tm = TransactionManagerServices.getTransactionManager();
if (tm.getStatus() != Status.STATUS_ACTIVE && tm.getStatus() != Status.STATUS_MARKED_ROLLBACK) {