Make argument of EventSourcingUtil.transferChanges a generic