Add ConsumerDocumentListener and use it.