@classmethod
def get_by_name(cls, context, name):
    """Find a DB Device Profile and return an Obj Device Profile."""
    db_devprof = cls.dbapi.device_profile_get(context, name)
    obj_devprof = cls._from_db_object(cls(context), db_devprof)
    return obj_devprof
