try {
User systemUser = APILocator.getUserAPI().getSystemUser();
String editorName = UtilMethods.getUserFullName(contentlet.getModUser());
for (Map<String, Object> reference : references) {
HTMLPage page = (HTMLPage)reference.get("page");
Host host = hostAPI.findParentHost(page, systemUser, false);
Company company = PublicCompanyFactory.getDefaultCompany();
User pageUser = (User)reference.get("owner");
HashMap<String, Object> parameters = new HashMap<String, Object>();
parameters.put("from", company.getEmailAddress());
parameters.put("to", pageUser.getEmailAddress());
parameters.put("subject", "dotCMS Notification");
parameters.put("emailTemplate", Config.getStringProperty("CONTENT_CHANGE_NOTIFICATION_EMAIL_TEMPLATE"));
parameters.put("contentletEditedURL", "http://" + serverName + contentletEditURL);
parameters.put("contentletTitle", "Content");
parameters.put("pageURL", "http://" + serverName + UtilMethods.encodeURIComponent(page.getURI()));
parameters.put("pageTitle", page.getTitle());
parameters.put("editorName", editorName);
EmailFactory.sendParameterizedEmail(parameters, null, host, null);
}
} catch (Exception e) {