@patrickallaert A bit late maybe, but should this int be decreased here? Or should  transactionDepth be used as key instead?
Context: Looks like this will fail if there is several rollbacks in nested transactions.