LPS-51814 Take a simpler approach

Hey @tinatian, could you please take a look at this PR to me? I saw you refactored some of the out Template Engine classes and this PR is to support a new template engine. Let me know if you have any questions.

cc @migue, @brunobasto 

Thanks