if (event.getPhaseId() == PhaseId.RESTORE_VIEW) {
context = event.getFacesContext();
LoginBean sessionLoginInfo = getSessionLoginInfo(context);
if(sessionLoginInfo != null) {
sessionLoginInfo.performCheck();
}
}
}
private static LoginBean getSessionLoginInfo(FacesContext context) {