// If this invocation has been equipped with an associated ES
if (invocation instanceof AsyncInvocation)
{
// Cast
final AsyncInvocation asyncInvocation = (AsyncInvocation) invocation;
// Get out the ES
final AsyncInvocationContext context = asyncInvocation.getAsyncInvocationContext();
assert context != null : "async invocation context of " + invocation + " was null";
final ExecutorService es = context.getAsynchronousExecutor();
assert es != null : ExecutorService.class.getSimpleName() + " associated with " + context + " was null";
return es;