docs: private void confirmLeader(final EmbeddedLeaderElectionService service, final UUID leaderSessionId) {
  		synchronized (lock) {
  			// if the service was shut down in the meantime, ignore this confirmation
  			if (!service.running || shutdown) {
  				return;
  			}
  
  			try {
  				// check if the confirmation is for the same grant, or whether it is a stale grant
  				if (service == currentLeaderProposed && currentLeaderSessionId.equals(leaderSessionId)) {
  					final String address = service.contender.getAddress();
  					LOG.info("Received confirmation of leadership for leader {} , session={}", address, leaderSessionId);
  
  					// mark leadership
  					currentLeaderConfirmed = service;
  					currentLeaderAddress = address;
  					currentLeaderProposed = null;
  
  					// notify all listeners
  					notifyAllListeners(address, leaderSessionId);
  				}
  				else {
  					LOG.debug("Received confirmation of leadership for a stale leadership grant. Ignoring.");
  				}
  			}
  			catch (Throwable t) {
  				fatalError(t);
  			}
  		}
  	}