Refactor Message to use ByteBuffers.