private void checkNeededWarnings(HttpServletRequest request, ResearchResult result)
     throws FenixServiceException {
   Person person = getLoggedPerson(request);
   if (!result.hasPersonParticipation(person) && !result.getCreator().equals(person)) {
     addActionMessage(request, "researcher.ResultParticipation.last.participation.warning");
   }
 }
  public ActionForward prepareEdit(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws FenixServiceException {
    final ResearchResult result = getResultFromRequest(request);
    Person person = getLoggedPerson(request);
    if (result == null
        || (!result.hasPersonParticipation(person) && !result.getCreator().equals(person))) {
      return backToResultList(mapping, form, request, response);
    }

    ResultParticipationCreationBean bean = getRenderedObject("bean");

    setResParticipationRequestAttributes(
        request, result, (bean == null) ? getBeanFromRequest(request, result) : bean);
    return mapping.findForward("editParticipation");
  }