code: public static boolean hasPathAsItemId(Container cnt, String path) {
  
          return cnt.containsId(path) || cnt.containsId(CmsFileUtil.toggleTrailingSeparator(path));
      }
docs: Checks if path is itemid in container.<p>
  
  @param cnt to be checked
  @param path as itemid
  @return true id path is itemid in container