Annotation refAnnotation = (Annotation)o;
LookupReference ref = refAnnotation.getAnnotation();
ReferenceDef refdef = new ReferenceDef();
refdef.name = ref.name();
refdef.service = analyzer.getTypeRef((String) refAnnotation.get("service")).getFQN();
refdef.cardinality = ref.cardinality();
refdef.policy = ref.policy();
refdef.policyOption = ref.policyOption();
refdef.target = ref.target();
refdef.scope = ref.scope();
component.references.put(refdef.name, refdef);