public function getController()
    {
        if ($this->controller instanceof MbController) {
            return $this->controller;
        }

        if (is_string($this->controller)) {
            $this->controller = MbController::create($this->controller);
        } else {
            throw new MbException("No Controller has been set for the page {$this->getName()}.");
        }

        return $this->controller;
    }