public function getSlot($name)
    {
        if (!isset($this->slots[$name])) {
            throw new ResourceNotFoundException("Slot $name not found");
        }
        return $this->slots[$name];

    }