Example of using CDI Events