code: public void buildFlushStack(Node headNode, EventType eventType)
      {
          if (headNode != null)
          {
              headNode.setTraversed(false);
              addNodesToFlushStack(headNode, eventType);
          }
      }
docs: Builds the flush stack.
  
  @param headNode
  the head node
  @param eventType
  the event type