public static boolean updateDBConfig(String userName, String password, String name, String driver, String url, String dbConfigPath) throws XPathExpressionException, ParserConfigurationException, SAXException, IOException, TransformerException {
		Document document = loadXML(dbConfigPath);
		
		XPath path = XPathFactory.newInstance().newXPath();
		XPathExpression express = path.compile("//Configure/New[@class='org.eclipse.jetty.plus.jndi.Resource']/Arg/New[@class='bitronix.tm.resource.jdbc.PoolingDataSource']/Set[@name='className']");
		
		NodeList nodes = (NodeList) express.evaluate(document,
				XPathConstants.NODESET);
		Node node = nodes.item(0);
		node.setTextContent(driver);
		path.reset();
		
		express = path.compile("//Configure/New[@class='org.eclipse.jetty.plus.jndi.Resource']/Arg/New[@class='bitronix.tm.resource.jdbc.PoolingDataSource']/Get['@name=driverProperties']/Put");
		nodes = (NodeList) express.evaluate(document,
				XPathConstants.NODESET);
		
		for (int i = 0; i < nodes.getLength(); i++) {
			node = nodes.item(i);
			if ("user".equals(node.getAttributes().item(0).getTextContent())) {
				node.setTextContent(userName);
			} else if ("password".equals(node.getAttributes().item(0).getTextContent())) {
				node.setTextContent(password);
			} else if ("URL".equals(node.getAttributes().item(0).getTextContent())) {
//				String url = node.getTextContent();
//				System.out.println("basic url ---> " + url + "; name -->" + name);
//				url = replaceDBName("examples", name, url);
//				System.out.println("dist url ---> " + url);
				node.setTextContent(url);
			}
		}
		path.reset();

		return updateXML(document, dbConfigPath);
	}