public function resolve(string $type, string $reference)
    {
        if (!isset($this->resolvers[$type]))
            throw new \InvalidArgumentException("Unknown resolver type: " . $type);

        return $this->resolvers[$type]['resolver']->resolve($reference);
    }