docs: private CmsSite getSiteFromForm() {
  
          String siteRoot = getSiteRoot();
          CmsSiteMatcher matcher = (CmsStringUtil.isNotEmpty(m_fieldSecureServer.getValue())
              & m_simpleFieldEncryption.getValue().equals(CmsSSLMode.SECURE_SERVER))
              ? new CmsSiteMatcher(m_fieldSecureServer.getValue())
              : null;
          CmsSite site = OpenCms.getSiteManager().getSiteForSiteRoot(siteRoot);
          CmsUUID uuid = new CmsUUID();
          if ((site != null) && (site.getSiteMatcher() != null)) {
              uuid = (CmsUUID)site.getSiteRootUUID().clone();
          }
          String errorPage = CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_fieldErrorPage.getValue())
          ? m_fieldErrorPage.getValue()
          : null;
          List<CmsSiteMatcher> aliases = getAliases();
          CmsSite ret = new CmsSite(
              siteRoot,
              uuid,
              getFieldTitle(),
              new CmsSiteMatcher(getFieldServer()),
              ((PositionComboBoxElementBean)m_fieldPosition.getValue()).getPosition() == -1
              ? String.valueOf(m_site.getPosition())
              : String.valueOf(((PositionComboBoxElementBean)m_fieldPosition.getValue()).getPosition()),
              errorPage,
              matcher,
              m_fieldExclusiveURL.getValue().booleanValue(),
              m_fieldExclusiveError.getValue().booleanValue(),
              m_fieldWebServer.getValue().booleanValue(),
              aliases);
          ret.setParameters((SortedMap<String, String>)getParameter());
          ret.setSSLMode((CmsSSLMode)m_simpleFieldEncryption.getValue());
          return ret;
      }