Remove use of deprecated API in UserInvoker example. Fixes issue #8.