Instead of doing this for each invocation - find out which method is exposed and set some flag to return appropriate value based on that via reflection.
I will defer to Tom on whether there is a better way to do this.