code: public List<NameValuePair> getParameters(HttpMessage msg, HtmlParameter.Type type) {
  		if (msg == null) {
  			throw new IllegalArgumentException("Parameter msg must not be null.");
  		}
  		if (type == null) {
  			throw new IllegalArgumentException("Parameter type must not be null.");
  		}
  
  		switch (type) {
  		case form:
  			return this.getFormParamParser(msg.getRequestHeader().getURI().toString()).getParameters(msg, type);
  		case url:
  			return this.getUrlParamParser(msg.getRequestHeader().getURI().toString()).getParameters(msg, type);
  		default:
  			throw new IllegalArgumentException("The provided type is not supported: " + type);
  		}
  	}
docs: Gets the parameters of the given {@code type} from the given {@code message}.
  <p>
  Parameters' names and values are in decoded form.
  
  @param msg the message whose parameters will be extracted from
  @param type the type of parameters to extract
  @return a {@code List} containing the parameters
  @throws IllegalArgumentException if any of the parameters is {@code null} or if the given {@code type} is not
  {@link org.parosproxy.paros.network.HtmlParameter.Type#url url} or
  {@link org.parosproxy.paros.network.HtmlParameter.Type#form form}.
  @since 2.5.0
  @see StandardParameterParser#getParameters(HttpMessage, org.parosproxy.paros.network.HtmlParameter.Type)