if (transactionData.type != TransactionType.NESTED || currentTransactions.size() == 0) {
TransactionStatus currentStatus = transactionData.getStatus();
PlatformTransactionManager aTxn = transactionData.getManager();
if (currentStatus != null && aTxn != null) {
_log.debug("Rollback Transaction: " + transactionData);
aTxn.rollback(currentStatus);
}
}
// We must flag all transactions to be rolled back. This is necessary because there is
// no guarantee we have actually started the transaction, so we may not be able to mark
// it as being only able to be rolled back.