Added WriteTaskEvent.java and associated helper classes.