}
ProductPoint pp = ppDao.get(p, years, ProductPoint.PURCHASE);
if (pp != null && pp.getPoints()!=0) {
UserPoint oldGSUP = getUserPoint(godson);
UserPoint gsUP = UserPointFactory.purchase(godson, oldGSUP, p, subscribedUsers, pp);
upDao.save(gsUP);
ServiceFactory.getRegistrationService().sendFidelityAccountPointEarnedBySelfPurchaseMail(godson, p, subscribedUsers, years, gsUP.getEarnedPoints(), gsUP.getPoints());
LOGGER.info("adding " + pp.getPoints() + " to user: " + godson.getId() + ", he bought " + p.getCode() + " for " + years + " years");
}
} catch (DaoException e) {
LOGGER.warn("cannot add fidelity points to user: " + buyer.getId(), e);