for (Annotation annotation : field.getAnnotations()) {
Dependency dependency = annotation.annotationType().getAnnotation(Dependency.class);
if (dependency != null) {
field.ensureAccessibility();
manager.relate(managed, (M) field.getValue(managed), dependency.strategy());
}
}
}
}