item.setOrder(new Integer(itemOrder.intValue() - 1));
item.setItemOrder(new Integer(itemOrder.intValue() - 1));
	public void run(		InfoSite siteView,		InfoSection sectionView,		InfoExecutionCourse infoExecutionCourse,		String itemName)		throws FenixServiceException {		try {			IDisciplinaExecucao executionCourse = null;			ISuportePersistente sp = SuportePersistenteOJB.getInstance();						IPersistentSite persistentSite = sp.getIPersistentSite();						IPersistentSection persistentSection = sp.getIPersistentSection();						IPersistentItem persistentItem = sp.getIPersistentItem();						ISite site = persistentSite.readByExecutionCourse(executionCourse);						executionCourse =				Cloner.copyInfoExecutionCourse2ExecutionCourse(infoExecutionCourse);						List geneologicTree = (List) sectionView.getSuperiorSectionsNames();						List inferiorSections = null;						ISection fatherSection = null;						ISection sonSection = null;						String fatherSectionName = null;						String sonSectionName = sectionView.getName();						if (geneologicTree.isEmpty() == false) {							Iterator iter = geneologicTree.iterator();							while (iter.hasNext()) {								fatherSectionName = (String) iter.next();								fatherSection =						persistentSection.readBySiteAndSectionAndName(							site,							fatherSection,							fatherSectionName);							}						}						sonSection =				persistentSection.readBySiteAndSectionAndName(					site,					fatherSection,					sonSectionName);						Integer orderOfDeletedItem = new Integer(-1);						List itemsList = null;						Iterator iterItems = null;						itemsList = sonSection.getItems();						iterItems = itemsList.iterator();						while (iterItems.hasNext()) {							IItem item = (IItem) iterItems.next();							if (item.getName().equals(itemName)) {								orderOfDeletedItem = item.getOrder();								persistentItem.delete(item);								break;							}						}						if (orderOfDeletedItem == new Integer(-1))				throw new FenixServiceException("non existing item");			//	throw new ItemInexistenteException("Item inexistente");						itemsList = sonSection.getItems();						iterItems = itemsList.iterator();						while (iterItems.hasNext()) {							IItem item = (IItem) iterItems.next();							Integer itemOrder = item.getOrder();							if (itemOrder.intValue() > orderOfDeletedItem.intValue()) {								item.setOrder(new Integer(itemOrder.intValue() - 1));								persistentItem.lockWrite(item);							}						}		} catch (ExcepcaoPersistencia e) {			throw new FenixServiceException(e);		}	}