docs: public static void replaceNodeValue(final Document doc, final String xPath,
              final String newValue) {
          final Text textNode = doc.createTextNode(newValue);
          try {
              final Node node = (Node) s_path.evaluate(xPath, doc,
                      XPathConstants.NODE);
              if (LOG.isDebugEnabled()) {
                  LOG.debug("Found node: " + node.getNodeName());
              }
              if (node == null) {
                  LOG.warn("Could not find xPath: " + xPath);
                  return;
              }
              node.replaceChild(textNode, node.getFirstChild());
          } catch (final XPathExpressionException e) {
              LOG.error("Bad XPath: " + xPath, e);
          }
      }