private function registerMustacheAutoloader()
    {
        if ($this->templateType != 'db')
            return;
        if ($this->mustachePath === null)
            $this->mustachePath = Yii::getPathOfAlias('vendor.mustache.mustache.src');
        $path = realpath($this->mustachePath);
        if (!$this->mustachePath || !$path)
            throw new CException('The EmailManager.mustachePath is invalid.');
        require_once($path . '/Mustache/Autoloader.php');
        $autoloader = new Mustache_Autoloader;
        Yii::registerAutoloader(array($autoloader, 'autoload'), true);
    }