OIdentifiable identifiable = entry.getKey();
if (identifiable instanceof ORecord) {
ORID identity = identifiable.getIdentity();
ORecord record = (ORecord) identifiable;
if (identity.isNew() || record.isDirty()) {
record.save();
identity = record.getIdentity();
}
newChangedValues.put(identity, entry.getValue());
} else