code: public static boolean needToUpdateResourceFields(CmsResource existingRes, CmsResource newRes, boolean reduced) {
  
          boolean result = false;
          result |= existingRes.getTypeId() != newRes.getTypeId();
          result |= differentDates(existingRes.getDateCreated(), newRes.getDateCreated()); // Export format date is not precise to millisecond
          result |= differentDates(existingRes.getDateReleased(), newRes.getDateReleased());
          result |= differentDates(existingRes.getDateExpired(), newRes.getDateExpired());
          result |= existingRes.getFlags() != newRes.getFlags();
          if (!reduced) {
              result |= !Objects.equal(existingRes.getUserCreated(), newRes.getUserCreated());
              result |= !Objects.equal(existingRes.getUserLastModified(), newRes.getUserLastModified());
              result |= existingRes.getDateLastModified() != newRes.getDateLastModified();
          }
          return result;
      }
docs: Check if a resource needs to be updated because of its direct fields.<p>
  
  @param existingRes the existing resource
  @param newRes the new resource
  @param reduced true if we are in reduced export mode
  
  @return true if we need to update the resource based on its direct fields