UserPreference pref = daos.getUserPreferenceAccess().find(con, participation.getUserId());
if (pref == null)
pref = UserPreference.getDefaultPreference(participation.getUserId());
MessageDelivery delivery = pref.isReceivingTwitterMessage() ? MessageDelivery.INQUEUE : MessageDelivery.NOT_DELIVERED;
UUID userMessageId = daos.getUserReceivedMessageAccess().getFreshId(con);
UserReceivedMessage userMessage = new UserReceivedMessage(userMessageId, sender.getId(), participation.getUserId(), eventId, messageId.toString(),
false, delivery, null, null, TimeUtil.getCurrentDateTime(), null);
daos.getUserReceivedMessageAccess().put(con, userMessage);