public static NodeList getNodes(Document doc, XmlEntity xmlEntity)
      throws XPathExpressionException {
    XPathContext context = new XPathContext();
    context.addNamespace(xmlEntity.getPrefix(), xmlEntity.getNamespace());
    if (xmlEntity.getChildPrefix() != null) {
      context.addNamespace(xmlEntity.getChildPrefix(), xmlEntity.getChildNamespace());
    }
    return query(doc, xmlEntity.getSearchString(), context);
  }
*
Gets all the nodes matching the definition given by the xml entity
geode-core/src/main/java/org/apache/geode/management/internal/configuration/utils/XmlUtils.java