@classmethod
def register_dict_to_class(cls, classname, converter):
    """
        Registers a custom converter function that creates objects from a dict with the given classname tag in it.
        The function is called with two parameters: the classname and the dictionary to convert to an instance of the class.

        This mechanism is not used for the pickle serializer.
        """
    cls.__custom_dict_to_class_registry[classname] = converter
