public abstract class JSONRender implements IRender, IJSONRender {
public void render(IMarkupWriter writer, IRequestCycle cycle) {
StringWriter sw = new StringWriter();
JSONWriterImpl jsonWriter = new JSONWriterImpl(new PrintWriter(sw));
renderComponent(jsonWriter, cycle);
jsonWriter.close();
writer.printRaw(sw.toString());
}