for (PropertyDescriptor descriptor : descriptors) {
String name = descriptor.getName();
String key = scope + "." + name;
if (PropertyUtils.isWriteable(target, name) && properties.containsKey(key)) {
try {
String value = context.expand(String.valueOf(properties.get(key)));
BeanUtils.setProperty(target, name, value);
SoapUI.log.info("Set property [" + name + "] to [" + value + "] in scope [" + scope + "]");
} catch (Throwable e) {
SoapUI.logError(e);
}