if (callback != null) {
callback.onSuccess(result);
}
futureTask.set(result);
}
<BUG>@Override
public void onError(Exception exc) {
apiEvent.setWasApiCallSuccessful(false);
</BUG>
apiEvent.setCorrelationId(request.getCorrelationId().toString());

if (callback != null) {
callback.onSuccess(result);
}
futureTask.set(result);
}
@Override
@SuppressWarnings("unchecked")
public void onError(Exception exc) {
apiEvent.setWasApiCallSuccessful(false, exc);
apiEvent.setCorrelationId(request.getCorrelationId().toString());
