public function addComponentToCache(UIComponent $component) { $id = $component->getId(); if (isset($this->idSet[$id])) { throw new \blaze\web\application\BlazeException('Component has an already existing id: ' . $id); } $this->idSet[$id] = $component; }