Decorator that will check whether the "inj_name" keyword argument to
    the wrapped function matches a registered Orca injectable.

def check_is_injectable(func):
    """
    Decorator that will check whether the "inj_name" keyword argument to
    the wrapped function matches a registered Orca injectable.

    """
    @wraps(func)
    def wrapper(**kwargs):
        name = kwargs['inj_name']
        if not orca.is_injectable(name):
            abort(404)
        return func(**kwargs)
    return wrapper