DataUpdateService dataUpdateService;
@Override
@Transactional(readOnly = false)
public void addNamedNotification(final long guestId, final Type type, final String name, String message) {
final Notification previousNotification = JPAUtils.findUnique(em,
Notification.class,
"notifications.withName",
guestId, name);
if (previousNotification==null) {
Notification notification = new Notification();
notification.guestId = guestId;
notification.type = type;
notification.message = message;
notification.name = name;
em.persist(notification);