if (parser == null) throw new IllegalStateException("Parser has not been set");  System.out.println("insertBeforeEnd not implemented");
HTMLEditorKit.ParserCallback reader = getInsertingReader( elem.getEndOffset(), 0, 0, HTML.Tag.BODY, elem);   getParser().parse(new StringReader(htmlText), reader, true);
  public void insertBeforeEnd(Element elem, String htmlText)      throws BadLocationException, IOException, NotImplementedException  {    if (parser == null)      throw new IllegalStateException("Parser has not been set");    //  FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit?    System.out.println("insertBeforeEnd not implemented");  }