Event Handlers
An event handler is of the form
{ type: ResourceEventType.XXX, handle(event) { ... } }