attr.addAttribute(StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(attr,
AbstractDocument.AttributeContext ctx = getAttributeContext(); AttributeSet copy = attr.copyAttributes(); copy = ctx.addAttribute(copy, StyleConstants.NameAttribute, t); element = new DefaultStyledDocument.ElementSpec(copy,
    protected void blockOpen(HTML.Tag t, MutableAttributeSet attr)    {      printBuffer();      DefaultStyledDocument.ElementSpec element;      attr.addAttribute(StyleConstants.NameAttribute, t);      element = new DefaultStyledDocument.ElementSpec(attr,			DefaultStyledDocument.ElementSpec.StartTagType);      parseBuffer.addElement(element);      printBuffer();    }