code: protected void arbitrationFinished(ArbitrationStatus arbitrationStatus, ArbitrationResult arbitrationResult) {
          this.arbitrationStatus = arbitrationStatus;
          this.arbitrationResult = arbitrationResult;
  
          // wait for arbitration listener to be registered
          if (arbitrationListenerSemaphore.tryAcquire()) {
              arbitrationListener.onSuccess(arbitrationResult);
              arbitrationListenerSemaphore.release();
          }
      }
docs: Sets the arbitration result at the arbitrationListener if the listener is already registered