}
private static void logEmailMessageSent(String subject, String body)
throws SystemException {
WarrantUserEmailLog createWarrantUserEmailLog =
WarrantUserEmailLogLocalServiceUtil.createWarrantUserEmailLog(CounterLocalServiceUtil.increment());
if(createWarrantUserEmailLog != null){
createWarrantUserEmailLog.setSubject(subject);
createWarrantUserEmailLog.setBodyContent(body);
createWarrantUserEmailLog.setCreateDate(new Date());
}
WarrantUserEmailLogLocalServiceUtil.updateWarrantUserEmailLog(createWarrantUserEmailLog);
}