else {
int index = getEditingFormObjectIndex();
// Avoid updating unless we have actually selected an object for
// edit
if (index >= 0) {
IndexAdapter adapter = editableFormObjects.getIndexAdapter(index);
adapter.setValue(formModel.getFormObject());
adapter.fireIndexedObjectChanged();
}
}
}
if (clearFormOnCommit) {
setFormObject(null);