public function generate($actionManager)
    {
        if ($actionManager instanceof ActionManagerInterface) {
            $this->actionManager = $actionManager;
            $this->actionManagerClass = get_class($this->actionManager);
        }

        if (is_string($actionManager) && class_exists($actionManager)) {
            $this->actionManager = new $actionManager();
            $this->actionManagerClass = $actionManager;
        }
    }