DatabaseMapping mapping = (DatabaseMapping)mappings.get(index);
if ((!isObjectPartial) || ((fetchedAttributes != null) && fetchedAttributes.contains(mapping.getAttributeName()))) {
// Only refresh the fetched attributes into clones.
mapping.buildClone(cachedObject, null, workingClone, null, uow);
if (workingClone != backupClone) {
mapping.buildClone(workingClone, null, backupClone, null, uow);
}
} else if (mapping.isAggregateObjectMapping()){
Object attributeValue = mapping.getAttributeValueFromObject(cachedObject);
Object cloneAttrbute = mapping.getAttributeValueFromObject(workingClone);
Object backupAttribute = mapping.getAttributeValueFromObject(backupClone);