final Integer resultId = Integer.valueOf(request.getParameter("resultId")); Result result = rootDomainObject.readResultByOID(resultId);
    public ActionForward createParticipationExternalPerson(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws Exception {        final Integer oid = Integer.parseInt(request.getParameter("resultId"));                if (RenderUtils.getViewState().getMetaObject().getObject() instanceof ResultParticipationSimpleCreationBean) {            ResultParticipationSimpleCreationBean simpleBean = (ResultParticipationSimpleCreationBean) RenderUtils.getViewState().getMetaObject().getObject();                        if (simpleBean.getPerson() != null){                ServiceUtils.executeService(getUserView(request), "CreateResultParticipation", new Object[] { simpleBean, oid });            }            else {                ResultParticipationFullCreationBean fullBean = new ResultParticipationFullCreationBean();                fullBean.setPersonName(simpleBean.getPersonName());                fullBean.setResultParticipationRole(simpleBean.getResultParticipationRole());                request.setAttribute("fullBean", fullBean);                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())                    {                        request.setAttribute("schemaExternalPersonFullCreation","resultParticipation.externalPerson.fullCreationWithRole");                    }                }                                return prepareEditParticipation(mapping,form,request,response);                            }        }        else if (RenderUtils.getViewState().getMetaObject().getObject() instanceof ResultParticipationFullCreationBean) {            ResultParticipationFullCreationBean fullBean = (ResultParticipationFullCreationBean) RenderUtils.getViewState().getMetaObject().getObject();            ServiceUtils.executeService(getUserView(request), "CreateResultParticipation", new Object[] { fullBean, oid });        }        return prepareEditParticipation(mapping,form,request,response);    }