AttributeContext ctx = getAttributeContext();
AbstractDocument.AttributeContext ctx = getAttributeContext();
  protected AbstractElement createDefaultRoot()  {    AttributeContext ctx = getAttributeContext();    // Create html element.    AttributeSet atts = ctx.getEmptySet();    atts = ctx.addAttribute(atts, StyleConstants.NameAttribute, HTML.Tag.HTML);    BranchElement html = (BranchElement) createBranchElement(null, atts);    // Create body element.    atts = ctx.getEmptySet();    atts = ctx.addAttribute(atts, StyleConstants.NameAttribute, HTML.Tag.BODY);    BranchElement body = (BranchElement) createBranchElement(html, atts);    html.replace(0, 0, new Element[] { body });    // Create p element.    atts = ctx.getEmptySet();    atts = ctx.addAttribute(atts, StyleConstants.NameAttribute, HTML.Tag.P);    BranchElement p = (BranchElement) createBranchElement(body, atts);    body.replace(0, 0, new Element[] { p });    // Create an empty leaf element.    atts = ctx.getEmptySet();    atts = ctx.addAttribute(atts, StyleConstants.NameAttribute,                            HTML.Tag.CONTENT);    Element leaf = createLeafElement(p, atts, 0, 1);    p.replace(0, 0, new Element[]{ leaf });    return html;  }