docs: public void initFormValues(CmsSearchReplaceSettings settings) {
  
          m_siteSelect.setValue(settings.getSiteRoot());
          m_ignoreSubSites.setValue(new Boolean(settings.ignoreSubSites()));
          m_searchType.setValue(settings.getType());
          if (!settings.getPaths().isEmpty()) {
              m_searchRoot.setValue(settings.getPaths().get(0));
          }
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(settings.getTypes())) {
              try {
                  I_CmsResourceType type = OpenCms.getResourceManager().getResourceType(settings.getTypes());
                  m_resourceType.setValue(type);
              } catch (CmsLoaderException e) {
                  // nothing to do, skip setting the type
              }
          }
          m_searchPattern.setValue(settings.getSearchpattern());
          m_ignoreSubSites.setValue(new Boolean(settings.ignoreSubSites()));
          if (settings.getType().isContentValuesOnly()) {
              if (settings.getLocale() != null) {
                  m_locale.setValue(settings.getLocale());
              }
              m_xPath.setValue(settings.getXpath());
          }
          if (settings.getType().isSolrSearch()) {
              m_solrQuery.setValue(settings.getQuery());
              m_searchIndex.setValue(settings.getSource());
          }
  
          if (settings.getType().isPropertySearch()) {
              m_property.select(settings.getProperty());
          }
          if (settings.getType().equals(SearchType.resourcetype)) {
              try {
                  CmsObject cms = OpenCms.initCmsObject(A_CmsUI.getCmsObject());
                  cms.getRequestContext().setSiteRoot("");
                  m_resourceSearch.setValue(
                      cms.readResource(
                          new CmsUUID(
                              settings.getSearchpattern().substring(
                                  settings.getSearchpattern().indexOf("<uuid>") + 6,
                                  settings.getSearchpattern().indexOf("</uuid>")))).getRootPath());
              } catch (CmsException e) {
                  LOG.error("Unable to read resource", e);
              }
  
          }
      }