public function setActionByDispatchName($dispatchName)
    {
        if (array_key_exists($dispatchName, $this->availableEvents)) {
            $this->action = $this->availableEvents[$dispatchName];
        } else {
            throw new \RuntimeException('Document Model event dispatch type not found: ' . $dispatchName);
        }
    }