code: public List<CmsCategory> readResourceCategories(CmsObject cms, CmsResource resource) throws CmsException {
  
          return internalReadResourceCategories(cms, resource, false);
      }
docs: Reads the categories for a resource.<p>
  
  @param cms the current cms context
  @param resource the resource to get the categories for
  
  @return the categories list
  
  @throws CmsException if something goes wrong