code: public static String param(String name, List<FormItem> formItems) {
          for (FormItem formItem : formItems) {
              if(formItem.isFormField() && formItem.getFieldName().equals(name)){
                  return formItem.getStreamAsString();
              }
          }
          return null;
      }
docs: Convenience method to get a parameter value in case <code>multipart/form-data</code> request was used.
  
  Returns a value of one named parameter from request. Will only return form fields, and not files.
  
  @param name name of parameter.
  @param formItems form items retrieved from <code>multipart/form-data</code> request.
  @return value of request parameter  from <code>multipart/form-data</code> request or null if not found.