{
Login login = getLogin();
login.setCallback(new PageCallback(this));
throw new PageRedirectException(login);
}
IRequestCycle cycle = getRequestCycle();
if (!getVisitState().getUser().isAdmin())
{
getErrorPresenter().presentError(
"That function is restricted to administrators.",
cycle);
throw new PageRedirectException(cycle.getPage());
}
}