docs: public Session login() throws RepositoryException {
  
          if (this.isActive(this.anonSession)) {
              //perform a refresh to update the session to the latest repository version
              this.anonSession.refresh(false);
          } else {
              this.anonSession = this.repository.login();
          }
  
          return this.anonSession;
      }