code: public void setArbitrationListener(ArbitrationCallback arbitrationListener) {
  
          this.arbitrationListener = arbitrationListener;
          // listener is now ready to receive arbitration result/status
          arbitrationListenerSemaphore.release();
          if (arbitrationStatus == ArbitrationStatus.ArbitrationSuccessful) {
              arbitrationFinished(arbitrationStatus, arbitrationResult);
          }
      }
docs: Called by the proxy builder to register the listener for arbitration results (DiscoveryAgent Instance).
  If the arbitration is already running or even finished the current state and in case of a successful arbitration
  the result is set at the newly registered listener.
  
  @param arbitrationListener the arbitration listener