if (bytesProcessed < message.length) {
message[bytesProcessed] = data.get();
bytesProcessed++;
}
if (bytesProcessed >= message.length) {
ResponseMessage response = new ResponseMessage(message);
for (TapResponseFlag flag : response.getFlags()) {
if (flag == TapResponseFlag.TAP_ACK) {
((Callback) getCallback()).gotAck(getHandlingNode(),
response.getOpcode(), response.getOpaque());
}
}
if (response.getOpcode() != TapOpcode.OPAQUE && response.getOpcode()
!= TapOpcode.NOOP) {
((Callback) getCallback()).gotData(response);
}
message = null;
bytesProcessed = 0;