public function getTemplate($nb_template)
    {
        $retval = false;

        if (is_numeric($nb_template_id = nb_getMixedValue($nb_template, NABU_MESSAGING_TEMPLATE_FIELD_ID))) {
            $retval = $this->nb_messaging_template_list->getItem($nb_template_id);
            if ($retval instanceof CNabuMessagingTemplate && $retval->getMessaging() === null) {
                $retval->setMessaging($this);
            }
        }

        return $retval;
    }