docs: protected void initHtmlImportObject() {
  
          Object o;
          String uri = getJsp().getRequestContext().getUri();
          if ((uri == null) || uri.endsWith(IMPORT_STANDARD_PATH)) {
              m_dialogMode = MODE_STANDARD;
          } else if (uri.endsWith(IMPORT_DEFAULT_PATH)) {
              m_dialogMode = MODE_DEFAULT;
          } else {
              m_dialogMode = MODE_ADVANCED;
          }
          if (CmsStringUtil.isEmpty(getParamAction())) {
              o = new CmsHtmlImport(getJsp().getCmsObject());
          } else {
              // this is not the initial call, get the job object from session
              o = getDialogObject();
          }
  
          if (!(o instanceof CmsHtmlImport)) {
              // create a new HTML import handler object
              m_htmlimport = new CmsHtmlImport(getJsp().getCmsObject());
          } else {
              // reuse HTML import handler object stored in session
              m_htmlimport = (CmsHtmlImport)o;
              // this is needed, because the user can switch between the sites, now get the current
              m_htmlimport.setCmsObject(getJsp().getCmsObject());
          }
  
          // gets the data from the configuration file
          fillHtmlImport();
      }