code: public static Session create(SessionStore sessionStore, HttpRequest<?> request) {
          Session session = sessionStore.newSession();
          request.getAttributes().put(HttpSessionFilter.SESSION_ATTRIBUTE, session);
          return session;
      }
docs: Creates a session and stores it in the request attributes.
  
  @param sessionStore the session store
  @param request the Http Request
  @return A new session stored in the request attributes