def set_deserializer_by_mime_type(self, mime_type):
for deserializer in self._deserializers:<EOL><INDENT>if deserializer.content_type() == mime_type:<EOL><INDENT>self._selected_deserializer = deserializer<EOL>return<EOL><DEDENT><DEDENT>raise exception.UnsupportedContentTypeError(mime_type, self.supported_mime_types_str)<EOL>
:param mime_type:
:return:

Used by content_type_set to set get a reference to the serializer object