code: private void parseRequest(CmsUploadListener listener) throws Exception {
  
          // check if the request is a multipart request
          if (!ServletFileUpload.isMultipartContent(getRequest())) {
              // no multipart request: Abort the upload
              throw new CmsUploadException(m_bundle.key(org.opencms.ade.upload.Messages.ERR_UPLOAD_NO_MULTIPART_0));
          }
  
          // this was indeed a multipart form request, read the files
          m_multiPartFileItems = readMultipartFileItems(listener);
  
          // check if there were any multipart file items in the request
          if ((m_multiPartFileItems == null) || m_multiPartFileItems.isEmpty()) {
              // no file items found stop process
              throw new CmsUploadException(m_bundle.key(org.opencms.ade.upload.Messages.ERR_UPLOAD_NO_FILEITEMS_0));
          }
  
          // there are file items in the request, get the request parameters
          m_parameterMap = CmsRequestUtil.readParameterMapFromMultiPart(
              getCmsObject().getRequestContext().getEncoding(),
              m_multiPartFileItems);
  
          listener.setFinished(true);
      }
docs: Parses the request.<p>
  
  Stores the file items and the request parameters in a local variable if present.<p>
  
  @param listener the upload listener
  
  @throws Exception if anything goes wrong