for (IAopReference reference : foundSourceReferences) {
if (refs.containsKey(reference.getSource())) {
refs.get(reference.getSource()).getAspects().add(reference);
}
else {
MethodReference r = new MethodReference();
r.setMember(reference.getSource());
r.getAspects().add(reference);
refs.put(reference.getSource(), r);
}
}
for (IAopReference reference : foundTargetReferences) {
if (refs.containsKey(reference.getTarget())) {
refs.get(reference.getTarget()).getAdvices().add(reference);
}
else {
MethodReference r = new MethodReference();
r.setMember(reference.getTarget());
r.getAdvices().add(reference);
refs.put(reference.getTarget(), r);
}
}
for (Map.Entry<IMember, MethodReference> entry : refs.entrySet()) {
nodes.add(new MethodBeanReferenceNode(entry.getKey(), entry.getValue().getAspects(), entry.getValue()