Why not implement WebContent directly to avoid reusing RunTime class, here, you just want to register events, not to launch the application.