ResponseWriter initialWriter = context.getResponseWriter();
assert !(initialWriter instanceof OnOffResponseWriter);
try {
context.setResponseWriter(new OnOffResponseWriter(initialWriter));
RendererState state = createRowHolder(context, component, null);
state.setEncoderVariance(EncoderVariance.partial);
PartialResponseWriter writer = context.getPartialViewContext().getPartialResponseWriter();