@Override
    public void write(DataOutput stream) throws IOException {
      assert mySize.getValue() == myValue.length();
      mySize.write(stream);
      for (int i = 0; i < myValue.length(); i++) {
        stream.writeShort(Short.toUnsignedInt(Short.reverseBytes((short)myValue.charAt(i))));
      }
    }
@Override
    public void write(DataOutput stream)