Update to given notify() example

example found at http://developer.kynetx.com/pages/viewpage.action?pageId=327708