code: public Session getAdminSession() throws RepositoryException {
  
          if(this.isActive(this.adminSession)){
              //perform a refresh to update the session to the latest repository version
              this.adminSession.refresh(false);
          } else {
              this.adminSession = this.repository.login(new SimpleCredentials("admin", "admin".toCharArray()));
          }
  
          return this.adminSession;
      }
docs: Logs into the repository as admin user. The session should be logged out after each test if the repository is
  used as a {@link org.junit.ClassRule}.
  
  @return a session with admin privileges
  
  @throws RepositoryException
  if the login failed for any reason