IBeansModelElement context) {
AutowireDependencyProvider provider = new AutowireDependencyProvider(root, context);
Map<IBean, Set<IBeanReference>> autowiredReferences = provider.resolveAutowiredDependencies();
for (Map.Entry<IBean, Set<IBeanReference>> entry : autowiredReferences.entrySet()) {
Bean bean = beans.get(entry.getKey().getElementName());
if (bean != null) {
Set<String> autowiredProperties = new HashSet<String>();
Set<IBeanReference> refs = entry.getValue();
for (IBeanReference ref : refs) {
Bean targetBean = beans.get(ref.getBeanName());
if (targetBean != null) {
beansReferences.add(new Reference(BeanType.STANDARD, bean, targetBean, null,
!bean.isRootBean(), (IResourceModelElement) ref));
try {