@SuppressWarnings({"unchecked"})
            private T castSessionAttribute(Session session) {
                return (T) session.getAttribute(key);
            }
Guice scope for Shiro sessions.  Not bound by default.
support/guice/src/main/java/org/apache/shiro/guice/ShiroSessionScope.java