}
@Override
public List<SystemNotification> getFutureNotifications(Date maxDate, User user) {
Session session = sessionManager.getSession();
List<SystemNotification> futureNotifications = session.createQuery(
"select sn from " + SqlSystemNotification.class.getSimpleName() + " as sn where sn.startDate > :now and sn.startDate < :maxDate")
.setParameter("now", new Date())
.setParameter("maxDate", maxDate)
.list();
LOGGER.debug("returning %d future system notifications", futureNotifications.size());