'A ORM-specific implementation of ``obj_get``.
Takes optional ``kwargs``, which are used to narrow the query to find
the instance.'

def obj_get(self, bundle, **kwargs):

    applicable_filters = self.build_filters(filters=kwargs, ignore_bad_filters=True)
    if (self._meta.detail_uri_name in kwargs):
        applicable_filters[self._meta.detail_uri_name] = kwargs[self._meta.detail_uri_name]
    try:
        object_list = self.apply_filters(bundle.request, applicable_filters)
        stringified_kwargs = u',    '.join([(u'%s=%s' % (k, v)) for (k, v) in applicable_filters.items()])
        if (len(object_list) <= 0):
            raise self._meta.object_class.DoesNotExist((u"Couldn't    find    an    instance    of    '%s'    which    matched    '%s'." % (self._meta.object_class.__name__, stringified_kwargs)))
        elif (len(object_list) > 1):
            raise MultipleObjectsReturned((u"More    than    one    '%s'    matched    '%s'." % (self._meta.object_class.__name__, stringified_kwargs)))
        bundle.obj = object_list[0]
        self.authorized_read_detail(object_list, bundle)
        return bundle.obj
    except ValueError:
        raise NotFound(u'Invalid    resource    lookup    data    provided    (mismatched    type).')
