public static Session findOrCreate ( HttpRequest < ? > request , SessionStore sessionStore ) { return find ( request ) . orElseGet ( ( ) -> create ( sessionStore , request ) ) ; }
Finds a session or creates a new one and stores it in the request attributes .