Based on https://code.google.com/p/unl-event-publisher/