code: public static String getUriForId(CmsObject cms, CmsUUID id) throws CmsException {
  
          CmsResource res = cms.readResource(id);
          return cms.getSitePath(res);
      }
docs: Returns a sitemap or VFS path given a sitemap entry id or structure id.<p>
  
  This method first tries to read a sitemap entry with the given id. If this succeeds,
  the sitemap entry's sitemap path will be returned. If it fails, the method interprets
  the id as a structure id and tries to read the corresponding resource, and then returns
  its VFS path.<p>
  
  @param cms the CMS context
  @param id a sitemap entry id or structure id
  
  @return a sitemap or VFS uri
  
  @throws CmsException if something goes wrong