Map<Address, Response> addressResponseMap = rpcManager.invokeRemotely(null, inDoubtTxInfoCommand,
rpcManager.getDefaultRpcOptions(true));
for (Map.Entry<Address, Response> re : addressResponseMap.entrySet()) {
Response r = re.getValue();
if (!isSuccessful(r)) {
throw new CacheException("Could not fetch in doubt transactions: " + r);
}
Set<InDoubtTxInfoImpl> infoInDoubtSet = (Set<InDoubtTxInfoImpl>) ((SuccessfulResponse) r).getResponseValue();
for (InDoubtTxInfoImpl infoInDoubt : infoInDoubtSet) {
InDoubtTxInfoImpl inDoubtTxInfo = result.get(infoInDoubt.getXid());
if (inDoubtTxInfo == null) {