protected function setCurrentModelClass()
    {
        if ( ! $this->router->isModelRoute()) {
            $this->currentModelClass = null;
            return $this;
        }

        $info = $this->repository->getByKey(
            $this->router->getModuleKeyForCurrentRoute()
        );

        if ($info) {
            $this->currentModelClass = $info->original_model ?: $info->model;
        } else {
            $this->currentModelClass = null;
        }

        $this->activeModelClass = $this->currentModelClass;

        return $this;
    }