public function saveEmailTemplate()
    {
        if (null === $this->_template->key) {
            $this->_template->key = $this->generateKey();
        }

        $this->_repository->save($this->_template);
    }