{
transactionManager.commit();
}
catch ( SecurityException e )
{
throw new TransactionFailureException( "Failed to commit.", e );
}
catch ( IllegalStateException e )
{
throw new TransactionFailureException( "Failed to commit.", e );
}
catch ( RollbackException e )
{
throw new TransactionFailureException( "Failed to commit.", e );
}
catch ( HeuristicMixedException e )
{
throw new TransactionFailureException( "Failed to commit.", e );
}
catch ( HeuristicRollbackException e )
{
throw new TransactionFailureException( "Failed to commit.", e );
}
catch ( SystemException e )
{
throw new TransactionFailureException( "Failed to commit.", e );
}
}