arraySize = Array.getLength(field);
System.arraycopy(field, 0, result, 0, arraySize);
}
// primitive arrays are ALWAYS cumulative
for (int i = 0; i < size; i++) {
CopyByReferenceContainer copyByReferences = globalConfiguration.getCopyByReferences();
Object toValue;
if (srcCollectionValue != null && copyByReferences.contains(srcCollectionValue.getClass())) {
toValue = srcCollectionValue;
} else {
toValue = mapOrRecurseObject(srcObj, Array.get(srcCollectionValue, i), destEntryType, fieldMap, destObj);
}
Array.set(result, arraySize, toValue);