reader.parseStack.push(parent.getAttributes().getAttribute( StyleConstants.NameAttribute));
  public HTMLEditorKit.ParserCallback getInsertingReader(int pos, int popDepth,                                                         int pushDepth,                                                         HTML.Tag insertTag,                                                         final Element parent)      throws IllegalStateException  {    if (parser == null)      throw new IllegalStateException("Parser has not been set");    HTMLReader reader = new HTMLReader(pos, popDepth, pushDepth, insertTag)    {      /**       * Ignore BODY.       */      public void handleStartTag(HTML.Tag t, MutableAttributeSet a, int pos)      {        if (t != HTML.Tag.BODY)          super.handleStartTag(t, a, pos);      }      /**       * Ignore BODY.       */      public void handleEndTag(HTML.Tag t, int pos)      {        if (t != HTML.Tag.BODY)          super.handleEndTag(t, pos);      }    };          // Set the parent HTML tag.    reader.parseStack.push(parent.getAttributes().getAttribute(      StyleConstants.NameAttribute));    return reader;  }   