List<AnnotationInstance> anList = compositeIndex.getAnnotations(resourceDotName);
for (AnnotationInstance an : anList) {
AnnotationTarget anTarget = an.target();
if (anTarget instanceof FieldInfo) {
FieldInfo fieldInfo = (FieldInfo) anTarget;
Type targetType = fieldInfo.type();
if (targetType.name().equals(targetDotName)) {
hasBundleContextResource = true;
break;
}
}
// [TODO] Method injection