code:     private boolean evaluate(String text) {
          try {
              InputSource inputSource = new InputSource(new StringReader(text));
              Document inputDocument = builder.parse(inputSource);
              return ((Boolean)xpath.evaluate(xpathExpression, inputDocument, XPathConstants.BOOLEAN)).booleanValue();
          } catch (Exception e) {
              return false;
          }
      }
  
      @Override
  