public function load($resource, $type = null)
    {
        if (!isset($this->slots[$resource])) {
            $collection = new RouteCollection();
        } else {
            $collection = $this->container->get($this->slots[$resource])->build();
        }

        foreach ($this->resources as $trackedResource) {
            $collection->addResource($trackedResource);
        }

        return $collection;
    }