public function getContentType()
    {
        if (!$this->contentType) {
            $this->setContentType($this->getParam('contentType') ?: static::TYPE_JSON);
        }

        return $this->contentType;
    }