public function setFeed(Feed $feed)
    {
        $author = $feed->get('author');

        if (empty($author)) {
            throw new \InvalidArgumentException('Atom formatter requires an "author" parameter in configuration.');
        }

        $this->feed = $feed;

        $this->initialize();
    }