code: public boolean hasChanged(Object entity) {
          DocumentInfo documentInfo = documentsByEntity.get(entity);
  
          if (documentInfo == null) {
              return false;
          }
  
          ObjectNode document = entityToJson.convertEntityToJson(entity, documentInfo);
          return entityChanged(document, documentInfo, null);
      }
docs: Determines whether the specified entity has changed.
  
  @param entity Entity to check
  @return true if entity has changed