Injecting resource into a root resource class

Use: curl http://localhost:8080/rest_inject/webresources/hello?name=pelle

Instantiation of JAX-RS classes and CDI classes are handled by different subsystems. Problems injecting CDI into root resource. Solutions: