setLookupConstants(lookupConstants);
shell.onLoginEvent(loginEvent);
final Place currentPlace = placeController.getWhere();
if(currentPlace instanceof LoginPlace) {// explicit login
final LoginPlace loginPlace = (LoginPlace) currentPlace;
if(loginPlace.getHistoryToken() != null && !"".equals(loginPlace.getHistoryToken())) {
History.newItem(loginPlace.getHistoryToken());
} else {
placeController.goTo(new HomePlace());
}
}else {
//this was an intercepted login so we leave user on current page