docs: @SuppressWarnings("rawtypes")
      @Override
      protected void initUserObject() {
  
          super.initUserObject();
          Object o = getDialogObject();
          if (o == null) {
              m_searchParams = new CmsSearchParameters();
              // implant a hook upon modifications of the list
              // this will set the search page to 1 if a restriction to the set of categories is performed
              m_searchParams.setCategories(new CmsHookListSearchCategory(m_searchParams, m_searchParams.getCategories()));
              m_search = new CmsSearch();
          } else {
              Map dialogObject = (Map)o;
              m_searchParams = (CmsSearchParameters)dialogObject.get(PARAM_SEARCH_PARAMS);
              if (m_searchParams == null) {
                  m_searchParams = new CmsSearchParameters();
              }
              m_search = (CmsSearch)dialogObject.get(PARAM_SEARCH_OBJECT);
              if (m_search == null) {
                  m_search = new CmsSearch();
              }
          }
          m_searchParams.setSearchIndex((CmsSearchIndex)getSearchIndexIndex());
      }