final Person person = getUserView(request).getPerson();  if(!result.hasPersonParticipation(person)) { addActionMessage(request, "researcher.result.editResult.participation.warning"); } if(result.getResultParticipationsCount()==1){ addActionMessage(request, "researcher.result.lastConnection.warning"); }
    public ActionForward prepareEditParticipation(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        final Integer resultId = Integer.valueOf(request.getParameter("resultId"));                //verify if field resultParticipationRole is to be active        Result result = rootDomainObject.readResultByOID(resultId);                if(result==null) {            return mapping.findForward("editParticipation");            }        request.setAttribute("result", result);                if(result instanceof ResultPublication)        {            if(((ResultPublication)result).haveResultPublicationRole())                request.setAttribute("participationsSchema","result.participationsWithRole");        }                return mapping.findForward("editParticipation");    }