code: public boolean isVm() {
      try {
        XPath xpath = XPathFactory.newInstance().newXPath();
        String expression = "/appengine-web-app/vm/text()='true'";
        return (Boolean) xpath.evaluate(expression, document, XPathConstants.BOOLEAN);
      } catch (XPathExpressionException e) {
        throw new GradleException("XPath evaluation failed on appengine-web.xml", e);
      }
    }
docs: Check if vm = true.