ChannelBufferInputStream inputStream = new ChannelBufferInputStream(buffer);
int senderId = -1;
long requestId = -1;
int response = -1;
try {
senderId = inputStream.readInt();
requestId = inputStream.readLong();
response = inputStream.readByte();
inputStream.close();
} catch (IOException e) {
throw new IllegalStateException(