public TemplateResolution resolveTemplate(TemplateProcessingParameters templateProcessingParameters) {
final String templateName = templateProcessingParameters.getTemplateName();
final String resourceName = templateName; // TODO
final String characterEncoding = encoding;
final String templateMode = computeTemplateMode(templateName);
final ITemplateResolutionValidity validity = new NonCacheableTemplateResolutionValidity();
return new TemplateResolution(templateName, resourceName, resourceResolver, characterEncoding, templateMode, validity);
}