TemplateUtil now inserts more newlines into generated code to make it easier to determine where exceptions are thrown.
MBug: Now sets the project and closes the projectList view.