public function getLayout($id)
    {
        if (!$this->_layoutsInitialized) {
            $this->_initLayout($id);
        }
        if (!isset($this->_layouts[$id])) {
            throw new Exception(__d('wasabi_cms', 'Layout "{0}" for theme "{1}" does not exist.', $id, $this->id()));
        }

        return $this->_layouts[$id];
    }