code: @SuppressWarnings("resource")
      public I_CmsImportExportHandler getImportExportHandler(CmsImportParameters parameters)
      throws CmsImportExportException {
  
          Document manifest;
          InputStream stream = null;
          CmsImportHelper helper = new CmsImportHelper(parameters);
          try {
              helper.openFile();
              stream = helper.getFileStream(CmsImportExportManager.EXPORT_MANIFEST);
              SAXReader reader = new SAXReader(false);
              reader.setValidation(false);
              reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
              manifest = reader.read(stream);
          } catch (Throwable e) {
              throw new CmsImportExportException(
                  Messages.get().container(Messages.ERR_IMPORTEXPORT_FILE_NOT_FOUND_1, EXPORT_MANIFEST),
                  e);
          } finally {
              try {
                  if (stream != null) {
                      stream.close();
                  }
              } catch (Exception e) {
                  // noop
              }
              helper.closeFile();
          }
          for (int i = 0; i < m_importExportHandlers.size(); i++) {
              I_CmsImportExportHandler handler = m_importExportHandlers.get(i);
              if (handler.matches(manifest)) {
                  return handler;
              }
          }
  
          CmsMessageContainer message = Messages.get().container(
              Messages.ERR_IMPORTEXPORT_ERROR_NO_HANDLER_FOUND_1,
              EXPORT_MANIFEST);
          if (LOG.isDebugEnabled()) {
              LOG.debug(message.key());
          }
  
          throw new CmsImportExportException(message);
      }
docs: Returns an instance of an import/export handler implementation that is able to import
  a specified resource.<p>
  
  @param parameters the import parameters
  
  @return an instance of an import/export handler implementation
  
  @throws CmsImportExportException if something goes wrong