code: public SerializerRegistry registerDefault(Class<?> baseType, Class<? extends TypeSerializer> serializer) {
      return registerDefault(baseType, new DefaultTypeSerializerFactory(serializer));
    }
docs: Registers the given class as a default serializer for the given base type.
  
  @param baseType The base type for which to register the serializer.
  @param serializer The serializer class.
  @return The serializer registry.