static protected function renderSmarty($formObj, $tplAttributes = Array())
    {
        $smarty = TemplateHelper::getSmartyTemplate();
        $tplFile = TemplateHelper::getTplFileWithPath($formObj->templateFile, $formObj->package);

        //Translate Array of template variables to \Zend template object
        foreach ($tplAttributes as $key => $value) {
            $smarty->assign($key, $value);
        };

        return $smarty->fetch($tplFile);
    }