report.setStatus(ConfigurationUpdateStatus.SUCCESS);
for (String key : report.getConfiguration().getSimpleProperties().keySet()) {
PropertySimple property = report.getConfiguration().getSimple(key);
if (property != null) {
EmsAttribute attribute = this.bean.getAttribute(key);
try {
PropertyDefinitionSimple def = configurationDefinition.getPropertyDefinitionSimple(property
.getName());
if (!(ignoreReadOnly && def.isReadOnly())) {
switch (def.getType()) {
case INTEGER: {
attribute.setValue(property.getIntegerValue());
break;
}
case LONG: {
attribute.setValue(property.getLongValue());
break;
}
case BOOLEAN: {
attribute.setValue(property.getBooleanValue());
break;
}
case FLOAT: {
attribute.setValue(property.getFloatValue());
break;
}
case DOUBLE: {
attribute.setValue(property.getDoubleValue());
break;
}
default: {
attribute.setValue(property.getStringValue());
break;
}
}
}
} catch (Exception e) {