localObject.setPersistenceState(PersistenceState.COMMITTED);
// *** the only line different from CayenneContext implementation. Not
// clear why it is different?
descriptor.injectValueHolders(localObject);
descriptor.shallowMerge(prototype, localObject);
}
else {
localObject.setPersistenceState(PersistenceState.HOLLOW);
}