authenticationResult.set(result);
latch.countDown();
}
@Override
public void onError(Exception exc) {
<BUG>apiEvent.setWasApiCallSuccessful(false);
</BUG>
apiEvent.setCorrelationId(request.getCorrelationId().toString());
apiEvent.stopTelemetryAndFlush();
exception.set(exc);

authenticationResult.set(result);
latch.countDown();
}
@Override
public void onError(Exception exc) {
apiEvent.setWasApiCallSuccessful(false, exc);
apiEvent.setCorrelationId(request.getCorrelationId().toString());
apiEvent.stopTelemetryAndFlush();
exception.set(exc);
