code: public void saveRewriteAliases(CmsDbContext dbc, String siteRoot, List<CmsRewriteAlias> newAliases)
      throws CmsException {
  
          CmsRewriteAliasFilter filter = new CmsRewriteAliasFilter().setSiteRoot(siteRoot);
          getVfsDriver(dbc).deleteRewriteAliases(dbc, filter);
          getVfsDriver(dbc).insertRewriteAliases(dbc, newAliases);
      }
docs: Replaces the complete list of rewrite aliases for a given site root.<p>
  
  @param dbc the current database context
  @param siteRoot the site root for which the rewrite aliases should be replaced
  @param newAliases the new aliases for the given site root
  @throws CmsException if something goes wrong