if (flag == XAResource.TMSTARTRSCAN || flag == XAResource.TMENDRSCAN)
throw new XAException("Non supported recovery flag: " + flag);
try {
XACnxRecoverReply reply =
(XACnxRecoverReply) cnx.syncRequest(new XACnxRecoverRequest());
if (reply == null) {
return new Xid[0];
}