*/
@Override
public void afterPropertiesSet() throws NotConfiguredException {
super.afterPropertiesSet();
if (this.gaeVelocityUtils == null || this.templateDirResource == null) {
throw new NotConfiguredException("GaeVelocityTemplateService is not properly configured.");
}
if (!this.templateDirResource.exists()) {
throw new NotConfiguredException("Configured template directory does not exist.");
}
try {
this.templateDir = this.templateDirResource.getFile().getPath();
LOGGER.debug("Velocity template directory is: " + this.templateDir);
} catch (IOException e) {
throw new NotConfiguredException("Unable to get templates path: " + e.getMessage(), e);
}
}