for (Map.Entry<String, Deque<String>> entry : queryParameters.entrySet()) {
ret.put(entry.getKey(), entry.getValue().toArray(new String[entry.getValue().size()]));
}
if (exchange.getRequestMethod().equals(Methods.POST)) {
final FormData parsedFormData = parseFormData();
if (parsedFormData != null) {
Iterator<String> it = parsedFormData.iterator();
while (it.hasNext()) {
final String name = it.next();
Deque<FormData.FormValue> val = parsedFormData.get(name);
if (ret.containsKey(name)) {
String[] existing = ret.get(name);
String[] array = new String[val.size() + existing.length];
System.arraycopy(existing, 0, array, 0, existing.length);
int i = existing.length;