return (Xid[])xids.toArray();
return (Xid[])xids.toArray(new Xid[xids.size()]);
   public Xid[] getPreparedTransactions()   {      List xids = this.serverPeer.getTxRepository().getPreparedTransactions();            return (Xid[])xids.toArray();   }