NullWriter.Instance, contentType, encoding);
} catch(IllegalArgumentException e) {
//Added because of an RI bug prior to 1.2_05-b3. Might as well leave it in case other
//impls have the same problem. https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=613
log.fine("The impl didn't correctly handled '*/*' in the content type list. Trying '*/*' directly.");
writer = renderKit.createResponseWriter(
NullWriter.Instance, "*/*", encoding);
}
//Override the JSF provided content type if necessary
contentType = getResponseContentType(context, writer.getContentType());