@Override
 public void initialize(int expectedSize) {
   super.initialize(expectedSize);
   setUseMessageSizeEncoding();
 }
 @Override
 public void readFields(DataInput dataInput) throws IOException {
   useMessageSizeEncoding = dataInput.readBoolean();
   super.readFields(dataInput);
 }
 @Override
 public void initialize() {
   super.initialize();
   setUseMessageSizeEncoding();
 }
 @Override
 public void write(DataOutput dataOutput) throws IOException {
   dataOutput.writeBoolean(useMessageSizeEncoding);
   super.write(dataOutput);
 }