public ByteBuffer getData() {
ByteBuffer buffer = new ByteBuffer();
buffer.appendInt(getCommandLength());
buffer.appendInt(getCommandId());
buffer.appendInt(getCommandStatus());
buffer.appendInt(getSequenceNumber());
return buffer;
}
public void setData(ByteBuffer buffer) throws NotEnoughDataInByteBufferException {
commandLength = buffer.removeInt();