public function get(string $type, string $id, array $options = []): ResourceInterface
    {
        $locale = $options['locale'] ?? null;
        $key = $this->generateKey($type, $id, $options);
        $this->warmUp($key, $type);

        if (!$this->savesResource($type) || !isset($this->resources[$key])) {
            throw new \OutOfBoundsException(\sprintf(
                'Resource pool could not find a resource with type "%s", ID "%s"%s.',
                $type,
                $id,
                $locale ? ', and locale "'.$locale.'"' : ''
            ));
        }

        return $this->resources[$key];
    }
public function get(string $type, string $id, array $options = []): ResourceInterface
    {
        $locale = $options['locale'] ?? null;
        $key = $this->generateKey($type, $id, $options);
        $this->warmUp($key, $type);

        if (!$this->savesResource($type) || !isset($this->resources[$key])) {
            throw new \OutOfBoundsException(\sprintf(
                'Resource pool could not find a resource with type "%s", ID "%s"%s.',
                $type,
                $id,
                $locale ? ', and locale "'.$locale.'"' : ''
            ));
        }

        return $this->resources[$key];
    }
{@inheritdoc}