// At this point, we would have waited for response from service1 if
// it were an async call.
// assume we received response at this point and continue.
if (result instanceof Success) {
notifier.receivedResult(context, service1Invocation, ((Success) result).header,
((Success) result).body, "got success response from service1");
} else if (result instanceof Failure) {
notifier.receivedFault(context, service1Invocation, ((Failure) result).header, ((Failure) result).body,
"got fault response from service1");
}