[Wen Hao] - Added freemarker support.
[Wen Hao] - Integrate with freemarker.
[Wen Hao] - Added a junit test to pass the test coverage.