Source:
<code>protected void emitHeadContents() { <START> for (AbstractDocumentBuilderExtension extension : getDocumentBuilderExtensions()) { <END> if (extension instanceof HtmlDocumentBuilderExtension) { ((HtmlDocumentBuilderExtension) extension).prependToDocumentHead(writer); } } if (encoding != null && encoding.length() > 0) { writer.writeEmptyElement(htmlNsUri, "meta"); writer.writeAttribute("http-equiv", "Content-Type"); writer.writeAttribute("content", String.format("text/html; charset=%s", encoding)); } if (copyrightNotice != null) { writer.writeEmptyElement(htmlNsUri, "meta"); writer.writeAttribute("name", "copyright"); writer.writeAttribute("content", copyrightNotice); } if (base != null && baseInHead) { writer.writeEmptyElement(htmlNsUri, "base"); writer.writeAttribute("href", base.toString()); } if (title != null) { writer.writeStartElement(htmlNsUri, "title"); writer.writeCharacters(title); writer.writeEndElement(); } if (!useInlineStyles && !suppressBuiltInStyles) { writer.writeStartElement(htmlNsUri, "style"); writer.writeAttribute("type", "text/css"); writer.writeCharacters("\n"); for (Entry<BlockType, ElementInfo> ent : blockTypeToElementInfo.entrySet()) { ElementInfo elementInfo = ent.getValue(); if (elementInfo.cssStyles != null && elementInfo.cssClass != null) { String[] classes = elementInfo.cssClass.split("\\s+"); for (String cssClass : classes) { writer.writeCharacters("."); writer.writeCharacters(cssClass); writer.writeCharacters(" "); } writer.writeCharacters("{"); writer.writeCharacters(elementInfo.cssStyles); writer.writeCharacters("}\n"); } } writer.writeEndElement(); } if (stylesheets != null) { for (Stylesheet stylesheet : stylesheets) { emitStylesheet(stylesheet); } } for (AbstractDocumentBuilderExtension extension : getDocumentBuilderExtensions()) { if (extension instanceof HtmlDocumentBuilderExtension) { ((HtmlDocumentBuilderExtension) extension).appendToDocumentHead(writer); } } }</code><technical_language>extensions called meta, base title</technical_language>

Target:
protected void emitHeadContents() { if (encoding != null && encoding.length() > 0) { writer.writeEmptyElement(htmlNsUri, "meta"); writer.writeAttribute("http-equiv", "Content-Type"); writer.writeAttribute("content", String.format("text/html; charset=%s", encoding)); } if (copyrightNotice != null) { writer.writeEmptyElement(htmlNsUri, "meta"); writer.writeAttribute("name", "copyright"); writer.writeAttribute("content", copyrightNotice); } if (base != null && baseInHead) { writer.writeEmptyElement(htmlNsUri, "base"); writer.writeAttribute("href", base.toString()); } if (title != null) { writer.writeStartElement(htmlNsUri, "title"); writer.writeCharacters(title); writer.writeEndElement(); } if (!useInlineStyles && !suppressBuiltInStyles) { writer.writeStartElement(htmlNsUri, "style"); writer.writeAttribute("type", "text/css"); writer.writeCharacters("\n"); for (Entry<BlockType, ElementInfo> ent : blockTypeToElementInfo.entrySet()) { ElementInfo elementInfo = ent.getValue(); if (elementInfo.cssStyles != null && elementInfo.cssClass != null) { String[] classes = elementInfo.cssClass.split("\\s+"); for (String cssClass : classes) { writer.writeCharacters("."); writer.writeCharacters(cssClass); writer.writeCharacters(" "); } writer.writeCharacters("{"); writer.writeCharacters(elementInfo.cssStyles); writer.writeCharacters("}\n"); } } writer.writeEndElement(); } if (stylesheets != null) { for (Stylesheet stylesheet : stylesheets) { emitStylesheet(stylesheet); } } for (DocumentBuilderExtension extension : activeExtensions) { if (extension instanceof HtmlDocumentBuilderExtension) { ((HtmlDocumentBuilderExtension) extension).appendToDocumentHead(writer); } } }