Transaction.canCommit() method must throw ITSE if transaction is not in prepared state