Set fetchedAttributes = isObjectPartial ? fetchGroupInObject.getAttributes() : null;
for (int index = 0; index < mappings.size(); index++) {
DatabaseMapping mapping = (DatabaseMapping)mappings.get(index);
if ((!isObjectPartial) || ((fetchedAttributes != null) && fetchedAttributes.contains(mapping.getAttributeName()))) {
//only fill in the unfetched attributes into clones
mapping.buildClone(cachedObject, workingClone, uow);
mapping.buildClone(workingClone, backupClone, uow);
}
}
}