private function registerSwiftMailerAutoloader()
    {
        if ($this->swiftMailerPath === null)
            $this->swiftMailerPath = Yii::getPathOfAlias('vendor.swiftmailer.swiftmailer.lib');
        $path = realpath($this->swiftMailerPath);
        if (!$this->swiftMailerPath || !$path)
            throw new CException('The EmailManager.swiftMailerPath is invalid.');
        require_once($path . '/classes/Swift.php');
        Yii::registerAutoloader(array('Swift', 'autoload'), true);
        require_once($path . '/swift_init.php');
    }