public function getLogEntry($version)
    {
        $log = $this->getResourceLog();

        if (!isset($log[$version])) {
            throw new \UnexpectedValueException("Invalid log entry $version for {$this->path}.");
        }

        return $log[$version];
    }