public function getWidget($id)
    {
        if (array_key_exists($id, $this->widgets)) {
            return $this->widgets[$id];
        } else {
            throw new SwatWidgetNotFoundException(
                "Widget with an id of '{$id}' not found.",
                0,
                $id
            );
        }
    }