code: @Deprecated
      public static List<CmsJspNavElement> getSiteNavigation(CmsObject cms, String folder, int endLevel) {
  
          return new CmsJspNavBuilder(cms).getSiteNavigation(folder, endLevel);
      }
docs: This method builds a complete navigation tree with entries of all branches
  from the specified folder.<p>
  
  For an unlimited depth of the navigation (i.e. no <code>endLevel</code>),
  set the <code>endLevel</code> to a value &lt; 0.<p>
  
  
  @param cms the current CMS context
  @param folder the root folder of the navigation tree
  @param endLevel the end level of the navigation
  
  @return list of navigation elements, in depth first order
  
  @deprecated use {@link #getNavigationForResource(String)} instead