private void doUpdateServerConfig(Message<JsonObject> message) {
		String port = message.body().getString("serverPort");

		try {
			if (!isPortInUse("localhost", new Integer(port))) {
				boolean flag = XMLHelper.updateServerConfig(port,
						this.getServerConfigPath());
				System.out.println("update server config result --->" + flag);
				if (flag) {
					sendOK(message);
				} else {
					sendError(message, "修改服务端口出错");
				}
			} else {
				sendError(message, "端口已经被占用:" + port);
			}
		} catch (ParserConfigurationException | SAXException | IOException e) {
			System.err.println(e.getMessage());
			logger.error(e.getMessage(), e);
		} catch (XPathExpressionException e) {
			System.err.println(e.getMessage());
			logger.error(e.getMessage(), e);
		} catch (TransformerException e) {
			System.err.println(e.getMessage());
			logger.error(e.getMessage(), e);
		}
	}