public function setCurrentRelease($currentRelease)
    {
        // The release must be in the array of releases.
        if (!isset($this->releases[$currentRelease['version']])) {
            throw new \Exception("The current release needs to be part of the release array.");
        }
        $this->currentRelease = $currentRelease;
    }