public function getController($name)
    {
        $names = explode('_', $name);
        array_unshift($names, 'Controller');

        foreach ($this->application->config('controller.namespaces') as $ns) {
            $class = $ns . '\\' . join('\\', array_map('ucfirst', $names)) . 'Controller';
            if (class_exists($class)) {
                $controller = new $class();
                $controller->setContainer($this->getContainer());
                $this->getContainer()->injectDependency($controller);
                $controller->setName($name);
                return $controller;
            }
        }

        // not found.
        throw new NotFoundException();
    }