public function resetTemplateVariables()
    {
        $data = &$this->getDataPlaceHolder();
        
        foreach (array_keys($data) as $k) {
            if ($data[$k] instanceof TemplateVariable) {
                $data[$k]->applyDefaultValue();
            }
        }
    }