public void orderGift(User u, Long giftId) throws ServiceException {
if (u instanceof UserImpl) {
try {
UserImpl user = (UserImpl)u;
UserPointDao upDao = DaoFactory.getUserPointDao();
FidelityOfferDao foDao = DaoFactory.getFidelityOfferDao();
FidelityOffer fo = (FidelityOffer)foDao.find(giftId);
if (fo != null) {
UserPoint oldUP = getUserPoint(user);
if (oldUP.getPoints() < fo.getNeededPoints()) {
throw new ServiceException(RessourceBundleApplicationMessage.error("woj.page.fidelity.offers.not.enough.points", null));
}