{
Object key = branchKeys.next();
XAResource resourceManager = (XAResource) branches.get(key);
try
{
resourceManager.rollback((Xid) key);
}
catch (Throwable e)
{
JPOXLogger.TRANSACTION.error(LOCALISER.msg("015038", "rollback", resourceManager, getXAErrorCode(e), toString()));
if( failures == null )