code: protected Node getMatchingNodeFromIndexHits(IndexHits<Node> nodesFound, boolean skipProxy)
      {
          Node node = null;
          try
          {
              if (nodesFound == null || nodesFound.size() == 0 || !nodesFound.hasNext())
              {
                  return null;
              }
              else
              {
                  if (skipProxy)
                      node = getNonProxyNode(nodesFound);
                  else
                      node = nodesFound.next();
              }
          }
          finally
          {
              nodesFound.close();
          }
          return node;
      }
docs: Fetches first Non-proxy node from Index Hits
  
  @param skipProxy
  @param nodesFound
  @return