Enumeration<String> paramNames = req.getParameterNames();
while(paramNames.hasMoreElements()) {
String name = paramNames.nextElement();
String value = req.getParameter(name);
QualifiedName qname = QNameUtil.parse(name, XQSP_NSURI);
Variable var = new GlobalVariable(qname, null);
var.setResult(XString.valueOf(value));
try {
loadedModule.putVariable(qname, var);
} catch (XQueryException e) {
reportError("Setting parameter failed: " + qname, e, out);
return;