} } else { order = new Integer(0);
	public ActionForward edit(		ActionMapping mapping,		ActionForm form,		HttpServletRequest request,		HttpServletResponse response)		throws FenixActionException {						DynaActionForm itemForm = (DynaActionForm) form;		HttpSession session = request.getSession(false);						UserView userView =			(UserView) 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);		GestorServicos manager = GestorServicos.manager();		Object readSectionArgs[] = { infoSection };				ArrayList items;				try {					items =						(ArrayList) manager.executar(							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"));		switch (order.intValue()) {			case -1 :				order=new Integer(items.size()- 1);				break;						default :				order= new Integer(order.intValue()-1);				break;		}		newInfoItem.setItemOrder(order);		newInfoItem.setName((String) itemForm.get("name"));		newInfoItem.setUrgent(new Boolean((String) itemForm.get("urgent")));		Object editItemArgs[] = { oldInfoItem, newInfoItem };										try {			manager.executar(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) manager.executar(					null,					"ReadItems",				readSectionArgs);		} catch (FenixServiceException fenixServiceException) {			throw new FenixActionException(fenixServiceException.getMessage());		}				session.setAttribute(SessionConstants.INFO_SECTION_ITEMS_LIST, items);		return mapping.findForward("viewSection");	}