@Override public Repository getRepository() {
    try {
      // NOTE: this class formerly used a ranking system to prioritize the providers registered and would check them in order
      // of priority for the first non-null repository.  In practice, we only ever registered one at a time, spoon or PUC.
      // As such, the priority ranking is gone and will need to be reintroduced if desired later.
      Collection<KettleRepositoryProvider> repositoryProviders = PluginServiceLoader.loadServices( KettleRepositoryProvider.class );
      return repositoryProviders.stream().map( KettleRepositoryProvider::getRepository ).filter( Objects::nonNull ).findFirst().orElse( null );
    } catch ( KettlePluginException e ) {
      logger.error( "Error getting repository", e );
    }
    return null;
  }
@Test
  public void testGetRepositoryNone() {
    assertNull( kettleRepositoryLocator.getRepository() );
  }