code: public void gotoEnd() {
  	currentNode = tree;
  	while (currentNode.hasChildren()) {
  	    currentNode = currentNode.getChildren().get(
  		    currentNode.getChildren().size() - 1);
  	}
      }
docs: This method sets the iterator onto the last tree element.