Debug check?

    if (act.isInDebugMode()) {
            act.getDb().setTransactionSuccessful();
            act.getDb().endTransaction();
    }