code: protected String getName(String sitePath) {
  
          String name = CmsResource.getName(sitePath);
          if (name.endsWith("/")) {
              name = name.substring(0, name.length() - 1);
          }
          return name;
  
      }
docs: Return the name of this item, which can differ from the entry name for root nodes.<p>
  
  @param sitePath the sitemap entry's site path
  
  @return the name