docs: public CmsDynamicFunctionBean parseFunctionBean(CmsObject cms, CmsXmlContent content) throws CmsException {
  
          Locale locale = getLocaleToUse(cms, content);
          String oldSiteRoot = cms.getRequestContext().getSiteRoot();
          try {
              cms.getRequestContext().setSiteRoot("");
              CmsResource functionFormatter = getFunctionFormatter(cms);
              CmsXmlContentRootLocation root = new CmsXmlContentRootLocation(content, locale);
              CmsDynamicFunctionBean functionBean = parseFunctionBean(cms, root, content.getFile(), functionFormatter);
              return functionBean;
          } finally {
              cms.getRequestContext().setSiteRoot(oldSiteRoot);
          }
      }