PageLinkMenuItem pageLink = (PageLinkMenuItem) entry;
item.add(new LinkPanel("menuItem", null, null, pageLink.toString(), pageLink.getPageClass(),
pageLink.getPageParameters(), false).setRenderBodyOnly(true));
} else if (entry instanceof ExternalLinkMenuItem) {
// link to a specified href
ExternalLinkMenuItem extLink = (ExternalLinkMenuItem) entry;
item.add(new LinkPanel("menuItem", null, extLink.toString(), extLink.getHref(),
extLink.openInNewWindow()).setRenderBodyOnly(true));
} else if (entry instanceof MenuDivider) {
// divider
item.add(new Label("menuItem").setRenderBodyOnly(true));
WicketUtils.setCssClass(item, "divider");
} else {