if (!MenuComponent.MODE_NONE.equalsIgnoreCase(mode)) {
ActionEvent actionEvent = new ActionEvent(menuItem);
if(MenuComponent.MODE_AJAX.equalsIgnoreCase(mode)){
new AjaxEvent(menuItem).queue();
if (AjaxRendererUtils.isAjaxRequest(context)) {
AjaxContext.getCurrentInstance(context)
.addAreasToProcessFromComponent(context, menuItem);