/**
  * {@inheritdoc}
  */
 public function getBody()
 {
     $body = parent::getBody();
     if (!empty($this->view)) {
         if ($body->isWritable()) {
             //Let's render view content
             $body->write($this->view->render());
         }
         $this->view = null;
     }
     return $body;
 }