class EruptContextService {

    @Resource
    private HttpServletRequest request;

    @Resource
    private EruptSessionService sessionService;

    //获取erupt上下文对象
    @Deprecated
    public Class<?> getContextEruptClass() {
        return EruptCoreService.getErupt(MetaContext.getErupt().getName()).getClazz();
    }

    //获取当前请求token
    public String getCurrentToken() {
        String token = request.getHeader(EruptReqHeaderConst.ERUPT_HEADER_TOKEN);
        return StringUtils.isNotBlank(token) ? token : request.getParameter(EruptReqHeaderConst.URL_ERUPT_PARAM_TOKEN);
    }

    //获取当前菜单对象
    public EruptMenu getCurrentEruptMenu() {<FILL_FUNCTION_BODY>}

}

        MetaErupt metaErupt = MetaContext.getErupt();
        return sessionService.getMapValue(SessionKey.MENU_VALUE_MAP + getCurrentToken()
                , (metaErupt.getMenuValue() == null ? metaErupt.getName() : metaErupt.getMenuValue()).toLowerCase(),
                EruptMenu.class);
    
<no_super_class>