if (parser == null) throw new IllegalStateException("Parser has not been set");  System.out.println("setOuterHTML not implemented");
int start = elem.getStartOffset(); int end = elem.getEndOffset();  remove(start, end-start);  HTMLEditorKit.ParserCallback reader = getInsertingReader( start, 0, 0, HTML.Tag.BODY, elem);   getParser().parse(new StringReader(htmlText), reader, true);
  public void setOuterHTML(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("setOuterHTML not implemented");    }