code: @Deprecated
      public static List<CmsJspNavElement> getNavigationTreeForFolder(
          CmsObject cms,
          String folder,
          int startlevel,
          int endlevel) {
  
          return new CmsJspNavBuilder(cms).getNavigationTreeForFolder(folder, startlevel, endlevel);
      }
docs: Builds a tree navigation for the folders between the provided start and end level.<p>
  
  A tree navigation includes all navigation elements that are required to display a tree structure.
  However, the data structure is a simple list.
  Each of the navigation elements in the list has the {@link CmsJspNavElement#getNavTreeLevel()} set
  to the level it belongs to. Use this information to distinguish between the navigation levels.<p>
  
  @param cms context provider for the current request
  @param folder the selected folder
  @param startlevel the start level
  @param endlevel the end level
  
  @return a sorted list of navigation elements with the navigation tree level property set
  
  @deprecated use {@link #getNavigationForResource(String)} instead