lib/Yucca/Component/SourceManager.php
protected function getFactory($type)
    {
        if (isset($this->sourceFactories[$type])) {
            return $this->sourceFactories[$type];
        } else {
            throw new \Exception("Factory \"$type\" not foud");
        }
    }
protected function getFactory($type)
    {
        if (isset($this->sourceFactories[$type])) {
            return $this->sourceFactories[$type];
        } else {
            throw new \Exception("Factory \"$type\" not foud");
        }
    }
get factory by its type
@param $type
@return SourceFactory\SourceFactoryInterface
@throws \Exception