}
private Map<String, List<ContentStatusChangedEventInfo>> extractContentMailInfoFromResultSet(ResultSet res) throws SQLException {
Map<String, List<ContentStatusChangedEventInfo>> eventsToNotify = new HashMap<String, List<ContentStatusChangedEventInfo>>();
while (res.next()) {
ContentStatusChangedEventInfo event = new ContentStatusChangedEventInfo();
event.setId(res.getInt(1));
event.setDate(res.getDate(2));
event.setContentId(res.getString(3));
String contentType = res.getString(4);
event.setContentTypeCode(contentType);
event.setContentDescr(res.getString(5));
event.setMainGroup(res.getString(6));
event.setStatus(res.getString(7));
List<ContentStatusChangedEventInfo> contentTypeEvents = (List<ContentStatusChangedEventInfo>) eventsToNotify.get(contentType);
if (contentTypeEvents == null) {
contentTypeEvents = new ArrayList<ContentStatusChangedEventInfo>();
eventsToNotify.put(contentType, contentTypeEvents);
}