'Get the registered class for ``jobj``.'

@classmethod
def get_type_cls(cls, jobj):

    if (cls in six.itervalues(cls.TYPES)):
        if (cls.type_field_name not in jobj):
            raise errors.DeserializationError('Missing    type    field    ({0})'.format(cls.type_field_name))
        return cls
    if (not isinstance(jobj, dict)):
        raise errors.DeserializationError('{0}    is    not    a    dictionary    object'.format(jobj))
    try:
        typ = jobj[cls.type_field_name]
    except KeyError:
        raise errors.DeserializationError('missing    type    field')
    try:
        return cls.TYPES[typ]
    except KeyError:
        raise errors.UnrecognizedTypeError(typ, jobj)
