docs: public static Repository getRepository( String repositoryName ) throws NoSuchRepositoryException {
          Repository repository = null;
          try {
              repository = repositoriesContainer.getRepository(repositoryName, Collections.unmodifiableMap(factoryParams));
          } catch (RepositoryException e) {
              throw new NoSuchRepositoryException(WebJcrI18n.cannotInitializeRepository.text(repositoryName), e);
          }
  
          if (repository == null) {
              throw new NoSuchRepositoryException(WebJcrI18n.repositoryNotFound.text(repositoryName));
          }
          return repository;
      }