protected function accepts($mimetype)
    {
        if (strtolower($this->request->getContentType()) != strtolower($mimetype)) {
            throw new UnsupportedMediaTypeException('No matching method for content type "'.$this->request->getContentType().'"');
        }

        return true;
    }