try {
// since this is a sync call, we mimic an async response by
// seting the result object
result = success;
// acknowledge that the result was sent successfully
notifier.sendingResponseSucceeded(context, invocationContext);
} catch (Exception ex) {
// acknowledge that sending the result failed
notifier.sendingResponseFailed(context, invocationContext, ex, "error sending response");
}