private static boolean equalToPersistentCopy(JODBOperationContext context, Object currentObject, ObjectDataContainer persistentCopyObjectDataContainer, ClassDescriptor desc , Field[] fieldsToIgnore) throws IOException{
//Field[] fields = desc.getFields();
JODBSession session = context.getSession();
//int[] fieldsIDs = desc.getFieldsSubstitutionIDs();
//boolean[] processedFields = new boolean[fieldsIDs.length];
FieldRecord fieldRecord = persistentCopyObjectDataContainer.getRecordCache();
FieldsIterator fieldsIterator = persistentCopyObjectDataContainer.getActiveFieldsIterator();
if(fieldsIterator == null){
return false;
}
while (fieldsIterator.hasNext()) {