public function getTemplateByKey(string $key)
    {
        $retval = false;

        if (is_string($key) && strlen($key) > 0) {
            $this->getTemplates();
            $retval = $this->nb_messaging_template_list->getItem($key, CNabuMessagingTemplateList::INDEX_KEY);
        }

        return $retval;
    }