public MySession getMySession() { if (mySession == null) mySession = (MySession) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("MySession"); if (mySession == null) FunctionLib.redirect(FunctionLib.getWebAppName()); return mySession; }
public Lang getLang() { if (lang == null) lang = (Lang) FacesContext.getCurrentInstance().getExternalContext().getApplicationMap().get("Lang"); if (lang == null) FunctionLib.redirect(FunctionLib.getWebAppName()); return lang; }