docs: @Deprecated
      public void setSession(Session session) {
          if (session == null) {
              throw new IllegalArgumentException("session cannot be null");
          }
          synchronized (this.lock) {
              this.userSetSession = session;
          }
      }