class SwitcherFilter implements Filter {
    @Override
    public Response filter(Caller<?> caller, Request request) {
        // 检查接口或方法降级开关状态
        if (MotanSwitcherUtil.isOpen(request.getInterfaceName())
                || MotanSwitcherUtil.isOpen(MotanFrameworkUtil.getFullMethodString(request))) {
            // 返回的reponse需要设置exception，这样invocationhandler会在throwException为false时，构建默认值返回
            return mockDefaultResponse(request);
        }
        return caller.call(request);
    }

    /**
     * 返回的reponse需要设置exception，这样invocationhandler会在throwException为false时，构建默认值返回
     * 
     * @param request
     * @return
     */
    private Response mockDefaultResponse(Request request) {<FILL_FUNCTION_BODY>}

}

        DefaultResponse response = new DefaultResponse(null, request.getRequestId());
        response.setException(new MotanServiceException("Request false for switcher is on"));
        return response;
    
<no_super_class>