{
if (!pageClass.equals(application.getHomePage()))
{
Url reverseUrl = application.getRootRequestMapper().mapHandler(
new RenderPageRequestHandler(new PageProvider(pageClass)));
<BUG>if (!matches(reverseUrl))
{</BUG>
return null;
}
}

{
this(new PageParametersEncoder());
}
@Override
protected Url buildUrl(UrlInfo info)
{
Url url = new Url();
url.getSegments().add(getContext().getNamespace());
url.getSegments().add(getContext().getBookmarkableIdentifier());
url.getSegments().add(info.getPageClass().getName());
encodePageComponentInfo(url, info.getPageComponentInfo());
return encodePageParameters(url, info.getPageParameters(), pageParametersEncoder);
