SpringBeanRemote springBeanRemote = field.getAnnotation(SpringBeanRemote.class);
String beanID = springBeanRemote.value();
if (StringHelper.isBlankOrNull(beanID)) {
beanID = field.getName();
}
SpringBeanRemoteType type = SpringBeanRemoteType.getTypeFromURL(beanID);
if (type == null) {
type = springBeanRemote.type();
beanID = type.name() + "/" + beanID;
}
try {
Object bean = ctx.getBean(beanID);
FieldHelper.setFieldValue(testedObject, field, bean);