public function menuFor($model, $modelId = 0, ModelConfig $config = null) {
        if (is_null($this->aujaConfigurator)) {
            throw new \LogicException('Auja not initialized. Call Auja::init first.');
        }

        $modelName = $this->resolveModelName($model);

        if ($modelId == 0) {
            $menu = $this->noAssociationsMenuFor($modelName, $config);
        } else {
            $menu = $this->buildComplexIndexMenu($modelName, $modelId, $config);
        }

        return $menu;
    }