public ActionForward saveOrder(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
public ActionForward saveOrder(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
    public ActionForward saveOrder(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {        final String treeStructure = request.getParameter("tree");        final Result result = readResultFromRequest(request);                final List<ResultParticipation> participations = result.getOrderedParticipations();        List<ResultParticipation> newParticipationsOrder = new ArrayList<ResultParticipation>();                if (treeStructure == null || treeStructure.length() == 0) {            return prepareEditParticipation(mapping,form,request,response);        }                final String[] nodes = treeStructure.split(",");        for(int i = 0; i < nodes.length; i++) {            String[] parts = nodes[i].split("-");                        Integer index = getId(parts[0])-1;            ResultParticipation participation = participations.get(index);            newParticipationsOrder.add(participation);        }                ResultParticipation.saveResultParticipationsOrder(result, newParticipationsOrder);                return prepareEditParticipation(mapping,form,request,response);    }