final Integer receiptID = Integer.valueOf(getFromRequest(request, "receiptID").toString()); final Receipt receipt = rootDomainObject.readReceiptByOID(receiptID);
final Receipt receipt = getReceipt(request);
    public ActionForward prepareShowReceipt(ActionMapping mapping, ActionForm actionForm,	    HttpServletRequest request, HttpServletResponse response) {	final Person person = getPerson(request);	final Integer receiptID = Integer.valueOf(getFromRequest(request, "receiptID").toString());	final Receipt receipt = rootDomainObject.readReceiptByOID(receiptID);	if (receipt == null) {	    addActionMessage(request, "error.administrativeOffice.payments.receipt.not.found");	    request.setAttribute("person", person);	    return mapping.findForward("showReceipts");	}	if (!person.getReceiptsSet().contains(receipt)) {	    addActionMessage(request,		    "error.administrativeOffice.payments.person.doesnot.contain.receipt");	    request.setAttribute("person", person);	    return mapping.findForward("showReceipts");	}	request.setAttribute("receipt", receipt);	return mapping.findForward("showReceipt");    }