public function getLastReleasedRevision()
    {
        if ($this->lastReleasedRevision === null) {
            $this->setLastReleasedRevision($this->revisionRepository->getLastReleasedByEnvironment($this));
        }
        return $this->lastReleasedRevision;
    }