Appropriate changes in build.gradle, error handling in TemplateImpl, content root binding for templates.