public function setStagedRevision(Revision $revision)
    {
        if (!empty($this->publishedRevision)
            && $this->publishedRevision->getRevisionId() == $revision->getRevisionId()
        ) {
            $this->removePublishedRevision();
        }

        $this->stagedRevision = $revision;
        $this->stagedRevisionId = $revision->getRevisionId();
    }