pm.retrievePreparedTransactions();
prepared = pm.retrievePreparedTransactions();
   public void loadPreparedTransactions() throws TransactionException   {      List prepared = null;            try      {         pm.retrievePreparedTransactions();      }      catch (Exception e)      {         throw new TransactionException("Failed to retrieve prepared transactions", e);      }            if (prepared != null)      {                  Iterator iter = prepared.iterator();                  while (iter.hasNext())         {            Xid xid = (Xid)iter.next();            Transaction tx = createTransaction(xid);            tx.insertedTXRecord();            tx.state = Transaction.STATE_PREPARED;         }      }   }