A TransactionInProgressException exception is thrown when an operation
is invalid because a transaction is in progress. For instance,
attempting to call Session.commit() when a session is part of a
distributed transaction.