@SuppressWarnings({"UnusedDeclaration"})
private MarkupWriter newMarkupWriter(ContentType contentType, boolean partial)
{
boolean isHTML = contentType.getMimeType().equalsIgnoreCase("text/html");
MarkupModel model = partial
? (isHTML ? htmlPartialModel : xmlPartialModel)
: (isHTML ? htmlModel : xmlModel);
// The charset parameter sets the encoding attribute of the XML declaration, if
// not null and if using the XML model.