@classmethod
def resolve_serializer(cls, mime_type):
    """
        Given the requested mime type, return an initialized `Serializer` that understands that mime type.

        :param mime_type: The mime type for which to get a compatible `Serializer`

        :return: A compatible `Serializer`.

        :raises: ValueError if there is no `Serializer` that understands this mime type.
        """
    if mime_type not in cls.all_supported_mime_types:
        raise ValueError('Mime type {} is not supported'.format(mime_type))
    return cls._mime_type_to_serializer_map[mime_type]()
