if (contactMech != null && "EMAIL_ADDRESS".equals(contactMech.get("contactMechTypeId"))) {
String toAddress = contactMech.getString("infoString");
GenericValue emailTemplateSetting = null;
try {
emailTemplateSetting = delegator.findOne("EmailTemplateSetting", true, "emailTemplateSettingId", "WEFF_EVENT_REMINDER");
} catch (GenericEntityException e1) {
Debug.logError(e1, module);
}
if (emailTemplateSetting != null) {
Map<String, Object> emailCtx = UtilMisc.toMap("emailTemplateSettingId", "WEFF_EVENT_REMINDER", "sendTo", toAddress, "bodyParameters", parameters);