public void resetHandlers(){
  atRoot=true;
  path="/";
  pathStack.clear();
  handlerStack.clear();
  handlers.clear();
  defaultHandler=null;
}

public void resetHandlers ( ) { atRoot = true ; path = "/" ; pathStack . clear ( ) ; handlerStack . clear ( ) ; handlers . clear ( ) ; defaultHandler = null ; }
used to remove all the element handlers and return things back to the way they were when object was created .
