docs: public Repository getRegisteredRepository(Repository repository) throws GreenPepperServerException {
          try {
              sessionService.startSession();
  
              Repository registeredRepository = loadRepository(repository.getUid());
  
              registeredRepository.setMaxUsers(repository.getMaxUsers());
  
              return registeredRepository;
          } finally {
              sessionService.closeSession();
          }
      }