code: public Pointer xpathPointer(Collection<?> collection, String query) {
      JXPathContext pathContext = JXPathContext.newContext(collection);
      Pointer result = null;
  
      try {
        result = pathContext.getPointer(query);
      } catch (JXPathNotFoundException e) {
        logger.warning(String.format("JXPath exception: %s", e.getMessage()));
      }
  
      return result;
    }
docs: TODO: This does not belong here!