code: public CmsRewriteAliasMatcher getRewriteAliasMatcher(CmsObject cms, String siteRoot) throws CmsException {
  
          List<CmsRewriteAlias> aliases = getRewriteAliases(cms, siteRoot);
          return new CmsRewriteAliasMatcher(aliases);
      }
docs: Gets the rewrite alias matcher for the given site.<p>
  
  @param cms the CMS context to use
  @param siteRoot the site root
  
  @return the alias matcher for the site with the given site root
  
  @throws CmsException if something goes wrong