return new VelocityTemplate(resource, encoding, engine);
}
public void afterPropertiesSet() throws Exception {
SpringResourceLoaderResourceLoader loader = new SpringResourceLoaderResourceLoader(resourceLoader);
ExtendedResourceManager resourceManager = new ExtendedResourceManager(loader);
engine = new ExtendedVelocityEngine(resourceManager);
if (configuration != null) {
engine.init(configuration);
} else {
engine.init();