public function get($key)
{
if (!isset($this->resources[$key])) {
throw new OutOfBoundsException(sprintf('The offset "%s" does not exist.', $key));
}
if (!$this->resources[$key] instanceof PuliResource) {
$this->resources[$key] = $this->repo->get($this->resources[$key]);
}
return $this->resources[$key];
}