{
Login login = (Login) cycle.getPage("Login");
login.setCallback(new PageCallback(this));
throw new PageRedirectException(login);
}
if (!visit.getUser(cycle).isAdmin())
{
VirtualLibraryEngine vengine = (VirtualLibraryEngine) getEngine();
vengine.presentError("That function is restricted to adminstrators.", cycle);
throw new PageRedirectException(cycle.getPage());
}
}