publish((File)dependencies.get(currentProject));
	public void addApes(String apesName) throws Exception	{		XPath xpath = XPathFactory.newInstance().newXPath();				String expr_test = "//apes[@fileNameApes=\""+apesName+"\"]";		Element test_elem = null;				try {			test_elem = (Element)xpath.evaluate(expr_test, this.doc, XPathConstants.NODE);		}		catch (XPathExpressionException e) {			ErrorManager.getInstance().setErrTitle("Expression XPath Incorrecte");			ErrorManager.getInstance().setErrMsg("Expression XPath "+ expr_test +" Incorrecte");			throw new XPathExpressionException(expr_test);		}				if(test_elem == null)		{			String expression = "//dependencies";			Element elem = null;			Element newElem = doc.createElement("apes");			newElem.setAttribute("fileNameApes", apesName);				try {					elem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);			}			catch (XPathExpressionException e) {				ErrorManager.getInstance().setErrTitle("Expression XPath Incorrecte");				ErrorManager.getInstance().setErrMsg("Expression XPath "+ expr_test +" Incorrecte");				throw new XPathExpressionException(expr_test);			}			if ( elem != null ) {				elem.appendChild(newElem);								expression = "//apes[@fileNameApes='"+ apesName +"']";				newElem = null;				try {					newElem = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);				}				catch (XPathExpressionException e) {					ErrorManager.getInstance().setErrTitle("Expression XPath Incorrecte");					ErrorManager.getInstance().setErrMsg("Expression XPath "+ expr_test +" Incorrecte");					throw new XPathExpressionException(expr_test);				}				if(newElem!=null)				{					Element elemOnServer = doc.createElement("onServer");						newElem.appendChild(elemOnServer);				}								saveDocument((File)dependencies.get(currentProject));					publish((File)dependencies.get(currentProject));			}					}	}	