@classmethod
def get_by_name(cls, context, name):
    """Return a ResourceClass object with the given string name.

        :param name: String name of the resource class to find

        :raises: ResourceClassNotFound if no such resource class was found
        """
    rc = context.rc_cache.all_from_string(name)
    obj = cls(context, id=rc['id'], name=rc['name'], updated_at=rc[
        'updated_at'], created_at=rc['created_at'])
    return obj
