public function setController($controller)
    {
        if (! ($controller instanceof LibBaseControllerAbstract)) {
            if (is_string($controller) && strpos($controller, '.') === false) {

                // Controlle name is always singular
                if (AnInflector::isPlural($controller)) {
                    $controller = AnInflector::singularize($controller);
                }

                $identifier = clone $this->getIdentifier();
                $identifier->path = array('controller');
                $identifier->name = $controller;
            } else {
                $identifier = $this->getIdentifier($controller);
            }

            $controller = $identifier;
        }

        $this->_controller = $controller;

        return $this;
    }