docs: public boolean isSecureLink(CmsObject cms, String vfsName, String siteRoot, boolean fromSecure) {
  
          if (siteRoot == null) {
              return isSecureLink(cms, vfsName, fromSecure);
          }
  
          // the site root of the cms object has to be changed so that the property can be read
          String storedSiteRoot = cms.getRequestContext().getSiteRoot();
          try {
              cms.getRequestContext().setSiteRoot(siteRoot);
              return isSecureLink(cms, vfsName, fromSecure);
          } finally {
              cms.getRequestContext().setSiteRoot(storedSiteRoot);
          }
      }