public function withType($contentType)
    {
        $mappedType = $this->resolveType($contentType);
        $new = clone $this;
        $new->_contentType = $mappedType;
        $new->_setContentType();

        return $new;
    }