code: public void addToNavigation(CmsClientSitemapEntry entry) {
  
          entry.setInNavigation(true);
          CmsSitemapChange change = new CmsSitemapChange(entry.getId(), entry.getSitePath(), ChangeType.modify);
          CmsPropertyModification mod = new CmsPropertyModification(
              entry.getId(),
              CmsClientProperty.PROPERTY_NAVTEXT,
              entry.getTitle(),
              true);
          change.setPropertyChanges(Collections.singletonList(mod));
          change.setPosition(entry.getPosition());
          commitChange(change, null);
      }
docs: Adds the entry to the navigation.<p>
  
  @param entry the entry