code: public Node getCurrentNode()
    {
  
      if (!m_cacheNodes)
        throw new RuntimeException(
          XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_CANNOT_INDEX, null)); //"This NodeSet can not do indexing or counting functions!");
  
      int saved = m_next;
      Node n = (m_next < m_firstFree) ? elementAt(m_next) : null;
      m_next = saved; // HACK: I think this is a bit of a hack.  -sb
      return n;
    }
docs: Return the last fetched node.  Needed to support the UnionPathIterator.
  
  @return the last fetched node.
  @throws RuntimeException thrown if this NodeSet is not of
  a cached type, and thus doesn't permit indexed access.