code: public Xid[] recover(int flags) throws XAException
     {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "recover", ""+flags);
  
        final Xid[] result = internalRecover(flags);
        
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "recover", result);
        return result;
     }
docs: Called by the transaction manager during recovery to get a list of
  transactions that are prepared or in-doubt.
  <p>
  Across the wire we will flow:
  <p>
  BIT32    Transaction Id
  BIT32    Flags
  
  @param flags
  
  @return Returns an array of Xid's
  
  @throws XAException if an exception is thrown at the ME. In the
  event of a comms failure, an XAException with XAER_RMFAIL will
  be thrown.