public DSFIDSerializerFactory setObjectSerializer(ObjectSerializer serializer) {
    this.serializer = serializer;
    return this;
  }
Replaces the default serializer with the given serializer.
Typically the given ObjectSerializer will defer most serialization of
DataSerializableFixedID objects to the DSFIDSerializer but may handle serialization
of other types of objects in its readObject/writeObject methods.
geode-serialization/src/main/java/org/apache/geode/internal/serialization/DSFIDSerializerFactory.java