if(result instanceof ResultPublication) { if(((ResultPublication)result).haveResultPublicationRole()) request.setAttribute("participationsSchema","result.participationsWithRole"); }
    public ActionForward prepareEditParticipation(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {        final Result result = readResultFromRequest(request);        if(result==null){            return backToResultList(mapping, form, request, response);        }                if(result instanceof ResultPublication)        {            if(((ResultPublication)result).haveResultPublicationRole())                request.setAttribute("participationsSchema","result.participationsWithRole");        }                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");        }                return mapping.findForward("editParticipation");    }