addGeneratedEvent nao eh static