+ getLength(destination.getInstanceName());
int messageLength = message == null ? 0 : message.readableBytes();
// Build message header
ByteBuf headerBuf = channel.alloc().buffer(headerLength);
headerBuf.writeInt(MESSAGE_VERSION).writeInt(messageType)
.writeLong(messageId.getMostSignificantBits())
.writeLong(messageId.getLeastSignificantBits());
writeStringWithLength(headerBuf, destination.getScope().getCluster());
writeStringWithLength(headerBuf, destination.getScope().getResource());
writeStringWithLength(headerBuf, destination.getScope().getPartition());