event.addAnnotatedType(bar);
}
protected <T> EnhancedAnnotatedType<T> getEnhancedAnnotatedType(BeanManager manager, Class<T> javaClass) {
if (manager instanceof BeanManagerProxy) {
BeanManagerProxy proxy = (BeanManagerProxy) manager;
manager = proxy.delegate();
}
if (manager instanceof BeanManagerImpl) {
BeanManagerImpl bmi = (BeanManagerImpl) manager;
return ((BeanManagerImpl) manager).createEnhancedAnnotatedType(javaClass);
} else {