code: public void setCurrentPos(int i)
    {
  
      if (!m_cacheNodes)
        throw new RuntimeException(
          XSLMessages.createXPATHMessage(XPATHErrorResources.ER_NODESET_CANNOT_INDEX, null)); //"This NodeSet can not do indexing or counting functions!");
  
      m_next = i;
    }
docs: Set the current position in the node set.
  @param i Must be a valid index.
  @throws RuntimeException thrown if this NodeSet is not of
  a cached type, and thus doesn't permit indexed access.