HTMLDocument document = new HTMLDocument(getStyleSheet());
StyleSheet styleSheet = getStyleSheet(); StyleSheet ss = new StyleSheet(); ss.addStyleSheet(styleSheet);  HTMLDocument document = new HTMLDocument(ss);
  public Document createDefaultDocument()  {    HTMLDocument document = new HTMLDocument(getStyleSheet());    document.setParser(getParser());    return document;  }