code: public static Optional<Session> find(HttpRequest<?> request) {
          return request.getAttributes().get(HttpSessionFilter.SESSION_ATTRIBUTE, Session.class);
      }
docs: Finds a session.
  
  @param request the Http Request
  @return A session if found in the request attributes.