final boolean useDialog,
final AuthenticationRequest authenticationRequest)
throws AuthenticationException {
final AuthenticationResult authenticationResultFromSilentRequest = tryAcquireTokenSilent(authenticationRequest);
if (isAccessTokenReturned(authenticationResultFromSilentRequest)) {
<BUG>mAPIEvent.setWasApiCallSuccessful(true);
</BUG>
mAPIEvent.setCorrelationId(authenticationRequest.getCorrelationId().toString());
mAPIEvent.setIdToken(authenticationResultFromSilentRequest.getIdToken());
mAPIEvent.stopTelemetryAndFlush();

final boolean useDialog,
final AuthenticationRequest authenticationRequest)
throws AuthenticationException {
final AuthenticationResult authenticationResultFromSilentRequest = tryAcquireTokenSilent(authenticationRequest);
if (isAccessTokenReturned(authenticationResultFromSilentRequest)) {
mAPIEvent.setWasApiCallSuccessful(true, null);
mAPIEvent.setCorrelationId(authenticationRequest.getCorrelationId().toString());
mAPIEvent.setIdToken(authenticationResultFromSilentRequest.getIdToken());
mAPIEvent.stopTelemetryAndFlush();
