If you have problems with the CdiUtil class being recognized as a bean, try to annotate it with @javax.enterprise.inject.Vetoed. It should solve the problem.