public void render(IMarkupWriter writer, IRender render, IRequestCycle cycle)
{
if (IJSONRender.class.isInstance(render)
&& IComponent.class.isInstance(render))
{
IJSONRender json = (IJSONRender) render;
IComponent component = (IComponent) render;
if (!contains(component, component.peekClientId()))
{
render.render(_nullWriter, cycle);
return;
}
json.renderComponent(_writer, cycle);
}
render.render(_nullWriter, cycle);
}