public function prepare(array $widget, $positionCode, array $params, XenForo_Template_Abstract $template)
 {
     $template->preloadTemplate('wf_widget_wrapper');
     $renderTemplate = $this->_getRenderTemplate($widget, $positionCode, $params);
     if (!empty($renderTemplate)) {
         $template->preloadTemplate($renderTemplate);
     }
     if ($this->useCache($widget)) {
         // sondh@2013-04-02
         // please keep this block of code in-sync'd with its original
         // implemented in WidgetFramework_WidgetRenderer::render
         $cacheId = $this->_getCacheId($widget, $positionCode, $params);
         $useUserCache = $this->useUserCache($widget);
         $useLiveCache = $this->useLiveCache($widget);
         WidgetFramework_Core::preloadCachedWidget($cacheId, $useUserCache, $useLiveCache);
     }
     $this->_prepare($widget, $positionCode, $params);
 }