newInfoItem.setUrgent(new Boolean((String) itemForm.get("urgent")));
    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws FenixActionException, FenixFilterException {        DynaActionForm itemForm = (DynaActionForm) form;        HttpSession session = request.getSession(false);        IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW);        InfoSection infoSection = (InfoSection) session.getAttribute(SessionConstants.INFO_SECTION);        InfoItem oldInfoItem = (InfoItem) session.getAttribute(SessionConstants.INFO_ITEM);        //InfoItem newInfoItem = (InfoItem)        // session.getAttribute(SessionConstants.INFO_ITEM);        Object readSectionArgs[] = { infoSection };        List items;        try {            items = (ArrayList) ServiceManagerServiceFactory.executeService(null, "ReadItems",                    readSectionArgs);        } catch (FenixServiceException fenixServiceException) {            throw new FenixActionException(fenixServiceException.getMessage());        }        InfoItem newInfoItem = new InfoItem();        newInfoItem.setInfoSection(infoSection);        newInfoItem.setInformation((String) itemForm.get("information"));        Integer order = new Integer((String) itemForm.get("itemOrder"));        if (items != null && items.size() != 0) {            switch (order.intValue()) {            case -1:                order = new Integer(items.size() - 1);                break;            default:                order = new Integer(order.intValue() - 1);                break;            }        } else {            order = new Integer(0);        }        newInfoItem.setItemOrder(order);        newInfoItem.setName((String) itemForm.get("name"));        newInfoItem.setUrgent(new Boolean((String) itemForm.get("urgent")));        Object editItemArgs[] = { oldInfoItem, newInfoItem };        try {            ServiceManagerServiceFactory.executeService(userView, "EditItem", editItemArgs);        } catch (ExistingServiceException e) {            throw new ExistingActionException("Um item com esse nome", e);        } catch (FenixServiceException fenixServiceException) {            throw new FenixActionException(fenixServiceException.getMessage());        }        session.setAttribute(SessionConstants.INFO_ITEM, newInfoItem);        //			read section items        try {            items = (ArrayList) ServiceManagerServiceFactory.executeService(null, "ReadItems",                    readSectionArgs);        } catch (FenixServiceException fenixServiceException) {            throw new FenixActionException(fenixServiceException.getMessage());        }        session.setAttribute(SessionConstants.INFO_SECTION_ITEMS_LIST, items);        return mapping.findForward("viewSection");    }