protected function initializeCommittedVersion(int $committedVersion): void
    {
        if (!$this->eventCollection()->isEmpty()) {
            $message = 'Cannot initialize version after recording events';
            throw new OperationException($message);
        }

        $this->eventCollection()->initializeSequence($committedVersion);
    }