Implement new event hierarchy handling with ClassWalker (#1463)This changes the implementation of onEvent in ListenerAdapter to be more maintainable (commit: a52eae4)