@Override
public ConstructorInjector createConstructor(ResourceConstructor constructor, ResteasyProviderFactory providerFactory)
{
Class<?> clazz = constructor.getConstructor().getDeclaringClass();
ConstructorInjector injector = cdiConstructor(clazz);
if (injector != null) return injector;
log.debug("No CDI beans found for {0}. Using default ConstructorInjector.", clazz);
return delegate.createConstructor(constructor, providerFactory);
}