log.debug("rolling back JPA resource-local transaction");
// TODO: translate exceptions that occur into the correct JTA exception
Transaction delegate = getDelegate();
rollbackOnly = false;
boolean tempSynchronizationRegistered = synchronizationRegistered;
delegate.rollback();
if (!tempSynchronizationRegistered)
{
getSynchronizations().afterTransactionCompletion(false);
}
}