private <T extends InjectionPoint> T validateInjectionPoint(T injectionPoint) {
try {
services.get(Validator.class).validateInjectionPointForDefinitionErrors(injectionPoint, null, this);
} catch (DefinitionException e) {
throw new IllegalArgumentException(e);
}
return injectionPoint;
}