Example that shows how to use java to send events. The actors are event, event generator, event registry, event listener.