/**
  * @return TYPO3\CMS\Core\TypoScript\TemplateService
  */
 public static function getTSTemplate()
 {
     if (!is_object(self::$tmpl)) {
         if ($GLOBALS['TSFE']->tmpl) {
             self::$tmpl = $GLOBALS['TSFE']->tmpl;
         } else {
             self::$tmpl = tx_rnbase::makeInstance(tx_rnbase_util_Typo3Classes::getTemplateServiceClass());
             self::$tmpl->init();
             self::$tmpl->tt_track = 0;
         }
     }
     return self::$tmpl;
 }