public void ifInTransaction(SqlConsumer<? super Connection> action) throws SQLException {
        if (inTransaction) {
            action.accept(connection);
        }
    }
Only closes the connection if it is NOT from a transaction.

@throws SQLException if there is a SQL error
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/db/ConnectionInfo.java