remove unnecessary loop in TemplateRepository.getTemplate method
Merge pull request #201 from sunil0791/sun_2.1-master

remove unnecessary loop in TemplateRepository.getTemplate method