This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Just be careful with getting a reference to the managed bean from the session map directly. It might not be there yet. Managed Bean has a lazy initialization. It means the session scope managed bean is initialized and put in the session bean not at the moment the session is created, but when the managed bean is first time referenced.
This following code returns the reference to the managed bean and create it if it is not in the session map yet: