/**
  * Returns the top level ActionRequest: the one just below the HTTP request
  *
  * @return ActionRequest
  * @api
  */
 public function getMainRequest()
 {
     return $this->parentRequest instanceof HttpRequest ? $this : $this->parentRequest->getMainRequest();
 }