@Override
    public void toData(DataOutput out,
        SerializationContext context) throws IOException {
      super.toData(out, context);
      DataSerializer.writeObject(key, out);
      out.writeInt(processorId);
      DataSerializer.writeObject(result, out);
      out.writeLong(lastModified);
      out.writeBoolean(isPresent);
      out.writeBoolean(isSerialized);
      out.writeBoolean(requestorTimedOut);
      DataSerializer.writeObject(versionTag, out);
    }
Invoked on the receiver - which, in this case, was the initiator of the QueryMessage .
geode-core/src/main/java/org/apache/geode/internal/cache/SearchLoadAndWriteProcessor.java