private GetNodeStateRequest.Reply convertToReply(Request req) {
        if (req.isError()) {
            return new GetNodeStateRequest.Reply(req.errorCode(), req.errorMessage());
        }

        if (req.methodName().equals("getnodestate3")) {
            String stateStr = "";
            String hostInfo = "";

            if (req.returnValues().satisfies("s*")) {
                stateStr = req.returnValues().get(0).asString();
            }

            if (req.returnValues().satisfies("ss*")) {
                hostInfo = req.returnValues().get(1).asString();
            }

            return new GetNodeStateRequest.Reply(stateStr, hostInfo);
        } else {
            return new GetNodeStateRequest.Reply(ErrorCode.BAD_REPLY, "Unknown method name " + req.methodName());
        }
    }
Handles the reply to a get node state request to a node.
clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/rpc/RPCGetNodeStateWaiter.java