code: public ICredentialRepository getCredentialRepository()
      {
          if (this.credentialRepositorySearched) return this.credentialRepository;
  
          this.credentialRepositorySearched = true;
  
          ServiceLoader<ICredentialRepository> loader =
                  ServiceLoader.load(ICredentialRepository.class);
  
          //noinspection LoopStatementThatDoesntLoop
          for (ICredentialRepository repository : loader)
          {
              this.credentialRepository = repository;
              break;
          }
  
          return this.credentialRepository;
      }
docs: This method loads the first available ICredentialRepository
  registered using the Java service loader API.
  
  @return the first registered ICredentialRepository or <code>null</code>
  if none is found.