docs: public void resolve() {
          E.illegalStateIf(state != State.CREATED);
          localeResolver.resolve();
          boolean sessionFree = handler.sessionFree() || sessionPassThrough;
          setWasUnauthenticated();
          H.Request req = req();
          if (!sessionFree) {
              resolveSession(req);
              app().eventBus().emit(new PreFireSessionResolvedEvent(session, this));
              resolveFlash(req);
          }
          state = State.SESSION_RESOLVED;
          if (!sessionFree) {
              handler.prepareAuthentication(this);
              app().eventBus().emit(new SessionResolvedEvent(session, this));
              if (isLoggedIn()) {
                  clearWasUnauthenticated();
              }
          }
      }