How to check if application generation is active for certain Event?