docs: private void initParams() {
  
          Object o;
  
          if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
              // read params from config
              o = null;
          } else {
              // this is not the initial call, get params from session
              o = getDialogObject();
          }
          if (!(o instanceof CmsSearchWorkplaceBean)) {
              String oldExplorerMode = getSettings().getExplorerMode();
              getSettings().setExplorerMode(null);
              String explorerResource = getSettings().getExplorerResource();
              getSettings().setExplorerMode(oldExplorerMode);
              m_search = new CmsSearchWorkplaceBean(explorerResource);
          } else {
              // reuse params stored in session
              m_search = (CmsSearchWorkplaceBean)o;
          }
      }