@Override
public void afterPropertiesSet() throws Exception {
if ( configurationFile != null ) {
Application application = new Application(configurationFile);
engine = new TemplateEngine(application);
} else {
engine = new TemplateEngine();
}
if ( root != null ) {
engine.getConfiguration().setWorkspace(root);
}
}