// Maybe it was removed
if(offered != null)
offerPerUser.put(productId, offered.getName());
}
if(offerPerUser.size()>0){
Offers offers = new Offers();
offers.setIdNameProducts(offerPerUser);
offers.setUserId(offer.getUserId());
if(email != null){
User user = model.find(User.class, email);
offers.setFriend(user.getFriends().contains(offer.getUserId()));
}
allOffers.add(offers);
}
}
}