Added events to hello world java app example.