return;
}
ObjectManager om = parentSM.getObjectManager();
ApiAdapter apiAdapter = om.getApiAdapter();
StateManager childStateMgr = om.findStateManager(child);
if (apiAdapter.isNew(child) &&
(childStateMgr == null ||
childStateMgr.getAssociatedValue(EntityUtils.getCurrentTransaction(om)) == null)) {
// This condition is difficult to get right. An object that has been persisted
// (and therefore had its primary key already established) may still be considered
// NEW by the apiAdapter if there is a txn and the txn has not yet committed.
// In order to determine if an object has been persisted we see if there is
// a state manager for it. If there isn't, there's no way it was persisted.