set content type on RenderContext prior to calling the renderer