final Integer resultId = Integer.valueOf(request.getParameter("resultId")); Result result = rootDomainObject.readResultByOID(resultId);
final Result result = readResultFromRequest(request); if(result==null){ return backToResultList(mapping, form, request, response); }
    public ActionForward prepareEditParticipationWithSimpleBean(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {                ResultParticipationSimpleCreationBean simpleBean = new ResultParticipationSimpleCreationBean();        request.setAttribute("simpleBean", simpleBean);        mantainExternalStatus(request);                //verify if field resultParticipationRole is to be active        final Integer resultId = Integer.valueOf(request.getParameter("resultId"));        Result result = rootDomainObject.readResultByOID(resultId);                if(result instanceof ResultPublication)        {            if(((ResultPublication)result).haveResultPublicationRole())            {                final String external = request.getParameter("external");                if(external.equals("false"))                    request.setAttribute("schemaInternalPersonCreation","resultParticipation.internalPerson.creationWithRole");                else                    request.setAttribute("schemaExternalPersonSimpleCreation","resultParticipation.externalPerson.simpleCreationWithRole");            }        }        return prepareEditParticipation(mapping,form,request,response);    }