Using new more typesafe API for putting components into a session