}
T obj = model; // we modify the passed PH !
PropertyHaverEditorError errors = new PropertyHaverEditorError(this);
boolean error = false;
for (String propName : editors.keySet()) {
Editor ed = editors.get(propName);
if (ed != null) {
Object val = ed.flush();
if (val == null && ed.getErrors().size() > 0) {
error = true;
errors.putFieldError(propName, ed.getErrors());
} else {
obj.setProperty(propName, val);
}
}
}