Removed use of deprecated Event.getDataObject() method