public function getDomainComponent()
    {
        $component = $this;
        while ($component) {
            $class = $component->componentClass;
            if (Kwc_Abstract::hasSetting($class, 'baseProperties') &&
                in_array('domain', Kwc_Abstract::getSetting($class, 'baseProperties'))
            ) {
                return $component;
            }
            $component = $component->parent;
        }
    }