/**
* @return mixed
*/
protected function getDocument()
{
if ($this->codecMatcher->getDecoder() === null) {
$this->codecMatcher->findDecoder($this->getParameters()->getContentTypeHeader());
}
$decoder = $this->codecMatcher->getDecoder();
return $decoder->decode($this->getIntegration()->getContent());
}