EventTarget target = evt.getTarget();
if (!(target instanceof XBLOMDefinitionElement)) {
return;
}
XBLOMDefinitionElement def = (XBLOMDefinitionElement) target;
if (!isActiveDefinition(def, importElement)) {
return;
}
MutationEvent mevt = (MutationEvent) evt;
String attrName = mevt.getAttrName();
if (attrName.equals(XBL_ELEMENT_ATTRIBUTE)) {
DefinitionRecord defRec =
(DefinitionRecord) definitions.get(def, importElement);
removeDefinition(defRec);
addDefinition(def.getElementNamespaceURI(),
def.getElementLocalName(),
def,
importElement);
} else if (attrName.equals(XBL_REF_ATTRIBUTE)) {
if (mevt.getNewValue().length() != 0) {
DefinitionRecord defRec =