protected void addDocumentListeners() {
domNodeInsertedListener = new DOMNodeInsertedListener();
domNodeRemovedListener = new DOMNodeRemovedListener();
domAttrModifiedListener = new DOMAttrModifiedListener();
AbstractDocument doc = (AbstractDocument) document;
XBLEventSupport es = (XBLEventSupport) doc.initializeEventSupport();
es.addImplementationEventListenerNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
"DOMNodeInserted",
domNodeInsertedListener, false);
es.addImplementationEventListenerNS