Also use Kwf_Util_Https::domainSupportsHttps($this->getData()->getDomain()), like in Kwf_Component_Data->getAbsoluteUrl()