Object proxy = proxyFactory.createProxy(_interface);
InjectManager beanManager = InjectManager.create();
BeanFactory factory = beanManager.createBeanFactory(_interface);
if (getName() != null) {
factory = factory.name(getName());
addOptionalStringProperty("name", getName());
}
for (Annotation binding : getBindingList()) {
factory = factory.binding(binding);
}
for (Annotation stereotype : getStereotypeList()) {
factory = factory.stereotype(stereotype.annotationType());
}
factory.stereotype(Configured.class);
_bean = (AbstractBean) factory.singleton(proxy);
beanManager.addBean(_bean);
}