return null;
AttributeSet atts; if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { Element el = doc.getDefaultRootElement(); while (! el.isLeaf()) { int i = el.getElementIndex(index); el = el.getElement(i); } atts = el.getAttributes(); } finally { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readUnlock(); } return atts;
    public AttributeSet getCharacterAttribute(int index)      throws NotImplementedException    {      return null; // TODO    }