final Object collectionPojoWrappedByAdapter = collectionAdapter.getObject();
final Object collectionPojoActuallyOnPojo = getCollectionPojo(otma, adapter);
if (collectionPojoActuallyOnPojo != collectionPojoWrappedByAdapter) {
pojoAdapterMap.remove(collectionAdapter);
collectionAdapter.replacePojo(collectionPojoActuallyOnPojo);
pojoAdapterMap.add(collectionPojoActuallyOnPojo, collectionAdapter);
}
}
remapContainedAggregatedObject(adapter, persistedRootOid);