protected void switchView(AbstractPage page, String mainMenuActive, String subMenuActive) {
   currentPage = page;
   mainWindow.setMainNavigation(mainMenuActive);
   mainWindow.switchView(page);
   if (subMenuActive != null && page.getToolBar() != null) {
     page.getToolBar()
         .setActiveEntry(
             subMenuActive); // Must be set AFTER adding page to window (toolbar will be created in
                             // atach())
   }
 }