*/
protected IRequestTarget resolveBookmarkablePage(final RequestCycle requestCycle,
final RequestParameters requestParameters)
{
String bookmarkablePageClass = requestParameters.getBookmarkablePageClass();
Session session = requestCycle.getSession();
Class pageClass;
try
{
pageClass = session.getClassResolver().resolveClass(bookmarkablePageClass);
}
catch (ClassNotFoundException e)
{
return new WebErrorCodeResponseTarget(HttpServletResponse.SC_NOT_FOUND,
"Unable to load Bookmarkable Page");
}
try
{
PageParameters params = new PageParameters(requestParameters.getParameters());
if (requestParameters.getComponentPath() != null
&& requestParameters.getInterfaceName() != null)
{
final String componentPath = requestParameters.getComponentPath();
final Page page = session.getPage(requestParameters.getPageMapName(),
componentPath, requestParameters.getVersionNumber());
if (page != null && page.getClass() == pageClass)
{
return resolveListenerInterfaceTarget(requestCycle, page, componentPath,