code: public static Map<String, String> params1st(List<FormItem> formItems) {
          Map<String, String> vals = new HashMap<>();
          for (FormItem formItem : formItems) {
              if(formItem.isFormField() && !vals.containsKey(formItem.getFieldName())){
                  vals.put(formItem.getFieldName(), formItem.getStreamAsString());
              }
          }
          return vals;
      }
docs: Convenience method to get parameters in case <code>multipart/form-data</code> request was used.
  
  Returns a map where keys are names of all parameters, while values are the first value for each parameter, even
  if such parameter has more than one value submitted.
  
  @param formItems form items retrieved from <code>multipart/form-data</code> request.
  @return a map where keys are names of all parameters, while values are first value for each parameter, even
  if such parameter has more than one value submitted.