final Integer participationId = Integer.parseInt(request.getParameter("participationId")); final Integer resultId = Integer.parseInt(request.getParameter("resultId")); final String resultClassName = rootDomainObject.readResultByOID(resultId).getClass().getName();  Object[] args = { participationId }; ServiceUtils.executeService(getUserView(request), "DeleteResultParticipation", args);  final Result result = rootDomainObject.readResultByOID(resultId);  if (result == null) { request.setAttribute("resultClassName", resultClassName); return backToResult(mapping,form,request,response);
try { ServiceUtils.executeService(getUserView(request), "DeleteResultParticipation", args); } catch (FenixServiceException e) { addActionMessage(request, "researcher.result.error.participationNotFound");
    public ActionForward removeParticipation(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws Exception {                final Integer participationId = Integer.parseInt(request.getParameter("participationId"));        final Integer resultId = Integer.parseInt(request.getParameter("resultId"));        final String resultClassName = rootDomainObject.readResultByOID(resultId).getClass().getName();                Object[] args = { participationId };        ServiceUtils.executeService(getUserView(request), "DeleteResultParticipation", args);              final Result result = rootDomainObject.readResultByOID(resultId);                if (result == null) {            request.setAttribute("resultClassName", resultClassName);            return backToResult(mapping,form,request,response);        }                return prepareEditParticipation(mapping,form,request,response);    }