This fixes the injection issue. In CDI, when an instance is created, the constructor will be called first, followed by field injection. In your case, you tried to access the injected field, which has not been injected, in your constructor, which is why it is null. I added a postconstructor method, which will be called after constructor, field and method injection. At that time, the field injection would have been done. I tested and it works ok.
This fixes the injection issue. In CDI, when an instance is created, the constructor will be called first, followed by field injection. In your case, you tried to access the injected field, which has not been injected, in your constructor, which is why it is null. I added a postconstructor method, which will be called after constructor, field and method injection. At that time, the field injection would have been done. I tested and it works ok.