String actionString = XmlHelper.getAttribute("action", attributes);
String methodString = XmlHelper.getAttribute("method", attributes);
if (methodString == null)
methodString = "get";
HttpMethod httpMethod = HttpMethod.valueOf(methodString.toUpperCase());
URI uri = new URI(actionString);
String encoding = "UTF-8";
String contentType = "application/x-www-form-urlencoded";
MultiValueMap<String, String> requestValues = buildRequestValues(form, args, encoding);
return new FormRequest(httpMethod, requestValues, uri, contentType, encoding);