code: public List<CmsJspNavElement> getNavigationBreadCrumb(
          String folder,
          int startlevel,
          int endlevel,
          boolean currentFolder) {
  
          List<CmsJspNavElement> result = new ArrayList<CmsJspNavElement>();
  
          int level = CmsResource.getPathLevel(folder);
          // decrease folder level if current folder is not displayed
          if (!currentFolder) {
              level -= 1;
          }
          // check current level and change endlevel if it is higher or -1
          if ((level < endlevel) || (endlevel == -1)) {
              endlevel = level;
          }
  
          // if startlevel is negative, display only |startlevel| links
          if (startlevel < 0) {
              startlevel = endlevel + startlevel + 1;
              if (startlevel < 0) {
                  startlevel = 0;
              }
          }
  
          // create the list of navigation elements
          for (int i = startlevel; i <= endlevel; i++) {
              String navFolder = CmsResource.getPathPart(folder, i);
              CmsJspNavElement e = getNavigationForResource(navFolder);
              if (e != null) {
                  // add element to list
                  result.add(e);
              }
          }
  
          return result;
      }
docs: Build a "bread crumb" path navigation to the given folder.<p>
  
  The <code>startlevel</code> marks the point where the navigation starts from, if negative,
  the count of steps to go down from the given folder.<p>
  
  The <code>endlevel</code> is the maximum level of the navigation path, set it to -1 to build the
  complete navigation to the given folder.<p>
  
  You can include the given folder in the navigation by setting <code>currentFolder</code> to
  <code>true</code>, otherwise <code>false</code>.<p>
  
  @param folder the selected folder
  @param startlevel the start level, if negative, go down |n| steps from selected folder
  @param endlevel the end level, if -1, build navigation to selected folder
  @param currentFolder include the selected folder in navigation or not
  
  @return sorted list of navigation elements