CharSequence pageUrl = null;
RequestCycle requestCycle = RequestCycle.get();
if (page.isPageStateless())
{
pageUrl = requestCycle.urlFor(page.getClass(), page.getPageParameters());
appendAssignment(buffer, "settings.ie8_src", pageUrl);
}
else
{
IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(page));