public function setComponent($component, $config = array())
    {
        if (! ($component instanceof LibBaseControllerAbstract)) {

            if (is_string($component) && strpos($component, '.') === false) {
                $identifier = clone $this->getIdentifier();
                $identifier->package = $component;
            } else {
                $identifier = $this->getIdentifier($component);
            }

            $component = $identifier;
        }

        $this->setController($component, $config);

        return $this;
    }