code: public static List<CmsCategoryTreeEntry> getCategoriesForSitePathStatic(CmsObject cms, String sitePath)
      throws CmsException {
  
          return getCategoriesForSitePathStatic(cms, sitePath, null);
      }
docs: Helper method for getting the category beans for the given site path.<p>
  
  @param cms the CMS context to use
  @param sitePath the site path
  @return the list of category beans
  
  @throws CmsException if something goes wrong