.setUnauthorizedComponentInstantiationListener(
new IUnauthorizedComponentInstantiationListener() {
public void onUnauthorizedInstantiation(
final Component component) {
if (component instanceof Page) {
throw new RestartResponseAtInterceptPageException(
LoginPage.class);
} else {
throw new UnauthorizedInstantiationException(
component.getClass());
}