make TemplateInstance properties read-only