public function get($className)
    {
        if (!$this->has($className)) {
            throw new Exception('Repository ' . $className . ' not found');
        }
        return $this->pool[$className];
    }