BundleGenerator: added support for some event callbacks