Templating support for model entities