if (servletPath.startsWith("/") && servletPath.endsWith(".do")) {
servletPath = servletPath.substring(1, servletPath.length() - 3);
MenuTree pageTaskMenuTree = NavigationManager.getMenuTree(PageTaskMenuTree.PAGE_TASK_MENU_TREE);
MenuItem pageTasks = pageTaskMenuTree.getMenuItem(servletPath);
if (pageTasks != null) {
request.setAttribute(Constants.PAGE_TASKS, pageTaskMenuTree.rebuildMenus(pageTasks, request));
} else {
request.removeAttribute(Constants.PAGE_TASKS);
}
MenuTree toolBarMenuTree = NavigationManager.getMenuTree(ToolBarMenuTree.TOOL_BAR_MENU_TREE);
MenuItem toolBarItems = toolBarMenuTree.getMenuItem(servletPath);