return esr;
}
private EventRest convertEvent(Event event) {
EventRest er = new EventRest();
er.setDetail(event.getDetail());
er.setId(event.getId());
er.setSeverity(event.getSeverity().toString());
er.setTimestamp(event.getTimestamp());
er.setSourceId(event.getSource().getId());
return er;
}