try {
//TODO offerGuardian
//prepareDataForSelect(req);
Offer offer = offerService.load(Integer.valueOf(req.getParameter("id")));
OfferGuardianService offerGuardianService=(OfferGuardianService) BusinessUtil
.findBusiness("OfferGuardianService");;
if (offer.getOfferGuardian()!=null) {
OfferGuardian guardian=offerGuardianService.load(offer.getOfferGuardian().getIdOfferGuardian());
req.setAttribute("guardian", guardian.getFirstName()+" "+guardian.getLastName());
} else {
req.setAttribute("guardian", EMPTY);
}
req.setAttribute("id", String.valueOf(offer.getIdOffer()));