return false;
}
private Template createTemplateIfAbsent(final String name) throws ResourceNotFoundException {
Template template;
final Loader loader = this.resourceLoader;
final String normalizedName = loader.normalize(name);
if (normalizedName == null) {
//if normalized-name is null means not found resource.
throw new ResourceNotFoundException("Illegal template path: ".concat(name));
}
template = this.templateCache.get(normalizedName);
if (template == null) {
//then create Template
template = new Template(this, normalizedName,
loader.get(normalizedName));
if (loader.isEnableCache(normalizedName)) {
Template oldTemplate;
oldTemplate = this.templateCache.putIfAbsent(normalizedName, template);
//if old Template exist, use the old one
if (oldTemplate != null) {
template = oldTemplate;