final SettableFuture<AuthenticationResult> futureTask = new SettableFuture<AuthenticationResult>();
createAcquireTokenRequest(apiEvent).acquireToken(null, false, request,
new AuthenticationCallback<AuthenticationResult>() {
@Override
public void onSuccess(AuthenticationResult result) {
<BUG>apiEvent.setWasApiCallSuccessful(true);
</BUG>
apiEvent.setCorrelationId(request.getCorrelationId().toString());
apiEvent.setIdToken(result.getIdToken());
apiEvent.stopTelemetryAndFlush();

final SettableFuture<AuthenticationResult> futureTask = new SettableFuture<AuthenticationResult>();
createAcquireTokenRequest(apiEvent).acquireToken(null, false, request,
new AuthenticationCallback<AuthenticationResult>() {
@Override
public void onSuccess(AuthenticationResult result) {
apiEvent.setWasApiCallSuccessful(true, null);
apiEvent.setCorrelationId(request.getCorrelationId().toString());
apiEvent.setIdToken(result.getIdToken());
apiEvent.stopTelemetryAndFlush();
