addActionMessage(request, "error.impossible.to.perform.operation", null); mapping.findForward("prepareValidateCandidacyData");
addActionMessage(request, e.getMessage(), null); request.setAttribute("candidacy", candidacy); return mapping.findForward("showCandidacyValidateData");
    private ActionForward goToNextState(ActionMapping mapping,            ActionForm actionForm, HttpServletRequest request, HttpServletResponse response, String nextState) throws FenixActionException, FenixFilterException, FenixServiceException{        DynaActionForm form = (DynaActionForm) actionForm;        Integer candidacyNumber = (Integer) form.get("candidacyNumber");        Candidacy candidacy = Candidacy.readByCandidacyNumber(candidacyNumber);        if(candidacy == null){            throw new FenixActionException("invalid cadidacy number");        }        Object[] args = { new StateMachineRunner.RunnerArgs(candidacy.getActiveCandidacySituation() , nextState)};        try {            ServiceUtils.executeService(getUserView(request), "StateMachineRunner", args);        } catch (DomainException e) {            addActionMessage(request, "error.impossible.to.perform.operation", null);            mapping.findForward("prepareValidateCandidacyData");        }        request.setAttribute("candidacyID", candidacy.getIdInternal().toString());        return viewCandidacy(mapping, actionForm, request, response);    }