/**
* @param mixed $key
* @return ServiceInterface
* @throws ServiceNotFoundInCollectionException
*/
public function offsetGet($key)
{
if (!isset($this->items[$key])) {
throw new ServiceNotFoundInCollectionException("Service with key '{$key}' not found in collection");
}
return parent::offsetGet($key);
}