code: public Iterator<?> xpathIterator(Collection<?> collection, String query) {
      JXPathContext pathContext = JXPathContext.newContext(collection);
      Iterator<?> result = null;
  
      try {
        result = pathContext.iteratePointers(query);
      } catch (JXPathNotFoundException e) {
        logger.log(Level.WARNING, "JXPath exception: {0}", e.getMessage());
      }
  
      return result;
    }
docs: TODO: This does not belong here!