Example using CDI events