publish((File)dependencies.get(currentProject));
	public void setApesOnServer(boolean server, String apesName) throws Exception,NullPointerException	{		XPath xpath = XPathFactory.newInstance().newXPath();				String expression = "//apes[@fileNameApes=\""+apesName+"\"]";		Element apes = null;				try {			apes = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);		}		catch (XPathExpressionException e) {			ErrorManager.getInstance().setErrTitle("Expression XPath Incorrecte");			ErrorManager.getInstance().setErrMsg("Expression XPath "+ expression +" Incorrecte");			throw new XPathExpressionException(expression);		}				if(apes!=null)		{			xpath = XPathFactory.newInstance().newXPath();						expression = "//apes[@fileNameApes=\""+apesName+"\"]/onServer";			Element onServer = null;					try {				onServer = (Element)xpath.evaluate(expression, this.doc, XPathConstants.NODE);			}			catch (XPathExpressionException e) {				ErrorManager.getInstance().setErrTitle("Expression XPath Incorrecte");				ErrorManager.getInstance().setErrMsg("Expression XPath "+ expression +" Incorrecte");				throw new XPathExpressionException(expression);			}						if(server)			{				if(onServer == null)				{				Element elemOnServer = doc.createElement("onServer");					apes.appendChild(elemOnServer);				}			}			else			{								if(onServer != null)				{					apes.removeChild(onServer);				}			}			saveDocument((File)dependencies.get(currentProject));				publish((File)dependencies.get(currentProject));		}		else		{			ErrorManager.getInstance().setErrTitle("Pb Apes inconnu");			ErrorManager.getInstance().setErrMsg("Fichier Apes : "+ apesName +" inconnu.\n");			throw new NullPointerException();		}			}