//Check injection points
if (injectionPoints != null) {
for (InjectionPoint injectionPoint : injectionPoints) {
if (!injectionPoint.isDelegate()) {
manager.validate(injectionPoint);
} else {
if (!bean.getBeanClass().isAnnotationPresent(javax.decorator.Decorator.class)
&& !webBeansContext.getBeanManagerImpl().containsCustomDecoratorClass(bean.getBeanClass())) {
throw new WebBeansConfigurationException(
"Delegate injection points can not defined by beans that are not decorator. Injection point : "