code: @SuppressWarnings("rawtypes")
    public SerializerRegistry register(Class<?> type, Class<? extends TypeSerializer> serializer) {
      return register(type, calculateTypeId(type), new DefaultTypeSerializerFactory(serializer));
    }
docs: Registers a serializer for the given class.
  
  @param type The serializable class.
  @param serializer The serializer.
  @return The serializer registry.
  @throws RegistrationException If the given {@code type} is already registered