public AtmosphereRequest queryString(String qs) {
if (qs == null) return this;
if (!qs.isEmpty()) {
QueryStringDecoder decoder = new QueryStringDecoder(getRequestURI() + "?" + qs);
Map<String, List<String>> m = decoder.getParameters();
Map<String, String[]> newM = new HashMap<String, String[]>();
for (Map.Entry<String, List<String>> q : m.entrySet()) {
newM.put(q.getKey(), q.getValue().toArray(new String[q.getValue().size()]));
}
b.queryStrings(newM);