private Object readDSFID(final DataInput in) throws IOException, ClassNotFoundException {
    checkIn(in);
    DSCODE dsHeaderType = DscodeHelper.toDSCODE(in.readByte());
    if (dsHeaderType == DSCODE.NULL) {
      return null;
    }
    return readDSFID(in, dsHeaderType);
  }
For backward compatibility this method should be used to invoke toData on a DSFID.
It will invoke the correct toData method based on the class's version
information. This method does not write information about the class of the object. When
deserializing use the method invokeFromData to read the contents of the object.

@param ds the object to write
@param out the output stream.
geode-serialization/src/main/java/org/apache/geode/internal/serialization/internal/DSFIDSerializerImpl.java