protected function getResponseContent()
 {
     $response = $this->request->getResponse();
     // Only reprocess the response content, if the response is new.
     if (is_null($this->responseContent) || $response !== $this->lastResponse) {
         $content = $response->getContent();
         // PHP does not (yet?) support $this->method($args) for callable
         // properties
         $this->responseContent = $this->responseContentProcessor->__invoke($content);
         $this->lastResponse = $response;
     }
     return $this->responseContent;
 }
 protected function getResponseContent()
 {
     $response = $this->request->getResponse();
     // Only reprocess the response content, if the response is new.
     if (is_null($this->responseContent) || $response !== $this->lastResponse) {
         $content = $response->getContent();
         // PHP does not (yet?) support $this->method($args) for callable
         // properties
         if ($content !== null) {
             $this->responseContent = $this->responseContentProcessor->__invoke($content);
             if ($this->encodingConverter != null) {
                 $this->responseContent = $this->encodingConverter->encodeContentForPage($this->responseContent);
             }
         } else {
             $this->responseContent = array();
         }
         $this->lastResponse = $response;
     }
     return $this->responseContent;
 }