current = null;
iter.detach();
    public int getLength()    {      int retval = 0;      NodeIterator iter = createIterator();            while (iter.nextNode() != null)        {          retval++;        }      current = null;      return retval;    }