/**
  * Ensures that a valid template is available
  *
  * Die()s if the template given is invalid, and Form.html cannot be
  * loaded to replace it.
  * @param   \Cx\Core\Html\Sigma $objTemplateLocal   The template,
  *                                                  by reference
  */
 static function verify_template(&$objTemplateLocal)
 {
     //"instanceof" considers subclasses of Sigma to be a Sigma, too!
     if (!$objTemplateLocal instanceof \Cx\Core\Html\Sigma) {
         $objTemplateLocal = new \Cx\Core\Html\Sigma(\Env::get('cx')->getCodeBaseDocumentRootPath() . '/core/Setting/View/Template/Generic');
     }
     if (!$objTemplateLocal->blockExists('core_setting_row')) {
         $objTemplateLocal->setRoot(\Env::get('cx')->getCodeBaseDocumentRootPath() . '/core/Setting/View/Template/Generic');
         //$objTemplateLocal->setCacheRoot('.');
         if (!$objTemplateLocal->loadTemplateFile('Form.html')) {
             die("Failed to load template Form.html");
         }
         //die(nl2br(contrexx_raw2xhtml(var_export($objTemplateLocal, true))));
     }
 }