sender = rpcManager.getAddress();
}
private RemoteTransactionLogDetails extractRemoteTransactionLogDetails(ReplicableCommand c) {
Map<Address, Response> lr = rpcManager.invokeRemotely(Collections.singleton(targetNode), c, true, true);
if (lr.size() != 1) throw new RpcException("Expected just one response; got " + lr + " instead!");
Response r = lr.get(targetNode);
if (r != null && r.isSuccessful() && r.isValid()) {
return (RemoteTransactionLogDetails) ((SuccessfulResponse) r).getResponseValue();
} else {
throw new RpcException("Invalid response " + r);
}
}