@Inject
private AlertDao m_alertDao;
private Alert buildAlert(AlertEntity alertEntity, AlertMessageEntity message) {
Alert alert = new Alert();
alert.setDomain(alertEntity.getDomain());
alert.setAlertTime(alertEntity.getDate());
alert.setCategory(alertEntity.getType());
alert.setType(alertEntity.getLevel());
alert.setContent(message.getTitle() + "<br/>" + message.getContent());
alert.setMetric(alertEntity.getMetric());
return alert;
}