final Integer resultId = Integer.valueOf(request.getParameter("resultId"));
final Result result = readResultFromRequest(request); if(result==null){ return backToResultList(mapping, form, request, response); }
    public ActionForward prepareEditEventAssociations(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        final Integer resultId = Integer.valueOf(request.getParameter("resultId"));                Result result = rootDomainObject.readResultByOID(resultId);        request.setAttribute("result", result);                ResultEventAssociationSimpleCreationBean simpleBean = new ResultEventAssociationSimpleCreationBean();                if (request.getAttribute("fullBean") == null) {            request.setAttribute("simpleBean", simpleBean);        }        return mapping.findForward("editEventAssociations");    }