code: private void addModifiedOrDeletedObjects(List<EDBObject> tempList) {
          for (EDBObject a : this.startState) {
              String oid = a.getOID();
              EDBObject b = removeIfExist(oid, tempList);
              ObjectDiff odiff = new ObjectDiff(this.startCommit, this.endCommit, a, b);
              if (odiff.getDifferenceCount() > 0) {
                  diff.put(oid, odiff);
              }
          }
      }
docs: add all modified or deleted objects to the diff collection. As base to indicate if something changed the start
  state and the list of elements from the end state is taken.