for (AnnotationInstance instance : annotationList) {
final AnnotationTarget target = instance.target();
if (target instanceof FieldInfo) {
final FieldInfo fieldInfo = (FieldInfo) target;
String typeName = fieldInfo.type().toString();
if (typeName.startsWith("org.osgi.framework")) {
log.debugf("OSGi injection point of type '%s' detected: %s", typeName, fieldInfo.declaringClass());
depUnit.putAttachment(ADD_FRAMEWORK_DEP, true);
break;
}