@Override
    public boolean isInTransaction(Handle handle) {
        try {
            return !handle.getConnection().getAutoCommit();
        } catch (SQLException e) {
            throw new TransactionException("Failed to check status of transaction", e);
        }
    }
Called to test if a handle is in a transaction
core/src/main/java/org/jdbi/v3/core/transaction/CMTTransactionHandler.java