IRequestCycleSettings.REDIRECT_TO_RENDER);
// Handles the unauthorized access to pages.
getSecuritySettings()
.setUnauthorizedComponentInstantiationListener(
new IUnauthorizedComponentInstantiationListener() {
public void onUnauthorizedInstantiation(
final Component component) {
if (component instanceof Page) {
throw new RestartResponseAtInterceptPageException(
LoginPage.class);