@Override
public List<Notification> getLastNotifications(User user, int amount) {
List<Notification> result = null;
UserEntity userEntity = DozerHelper.map(user, UserEntity.class);
List<NotificationEntity> notifications = notificationRepository
.findByRecipient(userEntity, null, amount, null);
result = DozerHelper.mapList(notifications, Notification.class);
return result;