code: Xid[] getPreparedXids() {
  
          Iterator it = resources.keySet().iterator();
          Xid      curXid;
          HashSet  preparedSet = new HashSet();
  
          while (it.hasNext()) {
              curXid = (Xid) it.next();
  
              if (((JDBCXAResource) resources.get(curXid)).state
                      == JDBCXAResource.XA_STATE_PREPARED) {
                  preparedSet.add(curXid);
              }
          }
  
          return (Xid[]) preparedSet.toArray(new Xid[0]);
      }
docs: Return the list of transactions currently <I>in prepared or
  heuristically completed states</I>.
  Need to find out what non-prepared states they are considering
  <I>heuristically completed</I>.
  
  @see javax.transaction.xa.XAResource#recover(int)