199200201202203204205206207208209
/* Get the response and return the NodeState. */ BinaryNodeStateResponse response = protocol.read(channel, BinaryNodeStateResponse.class); return response.convertToNodeState(); } finally { if (channel != null) { channel.close(); } }