MenuManager menuManager = new MenuManager(locale, session);
if (req.getSession().getAttribute("sysMenuItems") == null || !locale.getLanguage().equals(req.getSession().getAttribute("language"))) {
Set<Menu> menu = menuManager.createMenu(webUser);
List<DisplayableMenuItem> displayableMenu = new ArrayList<DisplayableMenuItem>(10);
for (Menu m : menu) {
displayableMenu.add(new DisplayableMenuItem(m, locale));
}
req.getSession().setAttribute("sysMenuItems", displayableMenu);
if (req.getParameter(DONTGOHOME) == null) {
gohome = true;
}