boolean pageisCached = showCachedPage(pageToShow);
if (!pageisCached) {
// page has not been shown before.
// load style manager here to test for navigation.
PageStyleManager styleManager = new PageStyleManager(pageToShow,
sharedStyleManager.getProperties());
boolean pageHasNavigation = styleManager.showHomePageNavigation();
if (pageHasNavigation) {
// page or Home Page with a regular page layout, set the
// page id to the static PageFormWithNavigation id. first
// create the correct content.
pageFormWithNav.showPage(pageToShow, sharedStyleManager);