'Find a item for entity with attributes matching ``**kwargs``.'

def _find_with_attr(self, entity, **kwargs):

    matches = list(self._findall_with_attr(entity, **kwargs))
    num_matches = len(matches)
    if (num_matches == 0):
        raise client_exception.EntityMatchNotFound(entity=entity, args=kwargs)
    elif (num_matches > 1):
        raise client_exception.EntityUniqueMatchNotFound(entity=entity, args=kwargs)
    else:
        return matches[0]
