code: @Override
      public final JcrRepository getRepository( String repositoryName ) throws NoSuchRepositoryException {
          CheckArg.isNotEmpty(repositoryName, "repositoryName");
          checkRunning();
  
          final Lock lock = this.lock.readLock();
          try {
              lock.lock();
              JcrRepository repository = repositories.get(repositoryName);
              if (repository == null) {
                  throw new NoSuchRepositoryException(JcrI18n.repositoryDoesNotExist.text(repositoryName));
              }
              return repository;
          } finally {
              lock.unlock();
          }
      }
docs: Get the deployed {@link Repository} instance with the given the name.
  
  @param repositoryName the name of the deployed repository
  @return the named repository instance
  @throws IllegalArgumentException if the repository name is null, blank or invalid
  @throws NoSuchRepositoryException if there is no repository with the specified name
  @throws IllegalStateException if this engine is not {@link #getState() running}
  @see #deploy(RepositoryConfiguration)
  @see #undeploy(String)