public void addPog(String apesName, String pogName) throws Exception
public void addPog(String pogName) throws Exception
	public void addPog(String apesName, String pogName) throws Exception	{		XPath xpath = XPathFactory.newInstance().newXPath();				String expr_test = "//dependencies/apes[@fileNameApes=\""+apesName+"\"]/pog[@fileNamePog=\""+pogName+"\"]";		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/apes[@fileNameApes=\""+apesName+"\"]";						Element elem = null;			Element newElem = doc.createElement("pog");			newElem.setAttribute("fileNamePog", pogName);				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);				saveDocument((File)dependencies.get(currentProject));					//publish((File)dependencies.get(currentProject));			}					}	}		