added JavaDoc in TemplatePanel