* @return The resolved email.
*/
protected Email resolveEmail(String name, Map model, Locale locale) {
StringWriter writer = new StringWriter();
Template template = templateResolver.resolve(name, getEncoding(), locale);
template.generate(writer, model);
if (logger.isDebugEnabled()) {
logger.debug("The generated email descriptor for '" + name + "' is:\n" + writer.toString());
}