private Map<String, String[]> readPostParameters(HttpServerExchange exchange) throws IOException {
final Map<String, String[]> ret = new HashMap<String, String[]>();
FormDataParser parser = FormParserFactory.builder(false).addParser(new FormEncodedDataDefinition().setForceCreation(true)).build().createParser(exchange);
FormData formData = parser.parseBlocking();
Iterator<String> it = formData.iterator();
while (it.hasNext()) {
final String name = it.next();
Deque<FormData.FormValue> val = formData.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;