code: private void abort(List<TransactionableResourceManagerListener> listeners) throws XAException
     {
        boolean exception = false;
        for (int i = 0, length = listeners.size(); i < length; i++)
        {
           TransactionableResourceManagerListener listener = listeners.get(i);
           try
           {
              listener.onAbort();
           }
           catch (Exception e)
           {
              log.error("Could not execute the method onAbort", e);
              exception = true;
           }
        }
        if (exception)
        {
           throw new XAException(XAException.XAER_RMERR);
        }
     }
docs: Call the method onAbort on all the given listeners
  
  @param listeners all the listeners on which we need to call the onAbort method
  @throws XAException if an error occurs while calling one of the onAbort methods