code: private void updateVisibility(A_CmsSitemapMenuEntry entry) {
  
          if (entry.getSubMenu() != null) {
              for (I_CmsContextMenuEntry subItem : entry.getSubMenu()) {
                  updateVisibility((A_CmsSitemapMenuEntry)subItem);
              }
          }
          entry.onShow();
      }
docs: Updates the visibility for an entry and its sub-entries.<p>
  
  @param entry the entry to update