return fileLoader.getReader(templateSource, encoding);
if (templateSource instanceof ClassPathTemplateSource)
return ((ClassPathTemplateSource) templateSource).getReader(encoding);
throw new EmailServiceConfigException("unexpected templateSource class " + templateSource.getClass().getName());
}