Integer renderCount = info.getComponentInfo() != null ? info.getComponentInfo()
.getRenderCount() : null;
if (info.getComponentInfo() == null)
{
PageProvider provider = new PageProvider(info.getPageInfo().getPageId(),
renderCount);
provider.setPageSource(getContext());
// render page
return new RenderPageRequestHandler(provider);
}
else
{
ComponentInfo componentInfo = info.getComponentInfo();
PageAndComponentProvider provider = new PageAndComponentProvider(
info.getPageInfo().getPageId(), renderCount,
componentInfo.getComponentPath());
provider.setPageSource(getContext());
// listener interface
RequestListenerInterface listenerInterface = requestListenerInterfaceFromString(componentInfo.getListenerInterface());
return new ListenerInterfaceRequestHandler(provider, listenerInterface,