code: private void openItemsOnPath(String path) {
  
          List<CmsSitemapTreeItem> itemsOnPath = getItemsOnPath(path);
          for (CmsSitemapTreeItem item : itemsOnPath) {
              item.setOpen(true);
          }
      }
docs: Opens all sitemap tree items on a path, except the last one.<p>
  
  @param path the path for which all intermediate sitemap items should be opened