Update template parse method
Code refactoring
Code refactoring for JUnit Template