}
public Xid[] recover(int flag) throws XAException {
getLogger().log("recover() for thread: " + Thread.currentThread(), LOG_CHANNEL, Logger.DEBUG);
TransactionalResource id = getCurrentlyActiveTransactionalResource();
if (id != null && id.getStatus() == STATUS_PREPARED) {
Xid[] xids = new Xid[1];
xids[0] = id.getXid();
return xids;
} else
return new Xid[0];
}