public DocumentHandlerState(TagHandler tagHandler){
  this.tagHandler=tagHandler;
}

public DocumentHandlerState ( TagHandler tagHandler ) { this . tagHandler = tagHandler ; }
creates a new documenthandlerstate which will maintain the state of parsing of the current element , as well as contain the taghandler which will receive events related to that element .
