allow newDoclet event handlers to modify doclets (#584)