if (charEncoding == null)
charEncoding = CharacterEncoding.getLocalEncoding();
String javaEncoding = Encoding.getJavaName(charEncoding);
Form formParser = new Form();
HashMapImpl<String,String[]> form = new HashMapImpl<String,String[]>();
try {
formParser.parseQueryString(form, query, javaEncoding, true);
} catch (java.io.IOException e) {
log.log(Level.FINE, e.toString(), e);
return false;
}