docs: public void updateSite(CmsObject cms, CmsSite oldSite, CmsSite newSite) throws CmsException {
  
          if (oldSite != null) {
              // remove the old site
              removeSite(cms, oldSite);
          }
  
          if (newSite != null) {
              // add the new site
              addSite(cms, newSite);
          }
      }