public function query()
 {
     $req = $this->newRequest('GET', new URL('http://localhost/?a=b'));
     $res = $this->newResponse(create(new Stylesheet())->withEncoding('iso-8859-1')->withOutputMethod('xml')->withTemplate($this->dumpParamsTemplate()));
     $s = new XMLScriptlet();
     $s->service($req, $res);
     $this->assertEquals(HttpConstants::STATUS_OK, $res->statusCode);
     $this->assertEquals('<?xml version="1.0" encoding="iso-8859-1"?>' . "\n" . "<html>\n  <body>state=static, page=home, lang=en_US, product=, sess=, query=a=b</body>\n</html>\n", $res->getContent());
 }
 /**
  * Process request
  *
  * @param   scriptlet.xml.XMLScriptletRequest request 
  * @param   scriptlet.xml.XMLScriptletResponse response 
  */
 public function processRequest($request, $response)
 {
     if (FALSE === $this->processWorkflow($request, $response)) {
         // The processWorkflow() method indicates no further processing
         // is to be done. Pass result "up".
         return FALSE;
     }
     return parent::processRequest($request, $response);
 }