@Override
 public void updateFrom(SimpleIndexHits<T> newValue, RestAPI restApi) {
   this.hits = newValue.hits;
   this.iterator = this.hits.iterator();
   this.size = newValue.size;
   this.entityExtractor = restApi.createExtractor();
 }
 public SimpleIndexHits(
     Collection<Object> hits, int size, Class<T> entityType, final RestAPI restApi) {
   this.hits = hits;
   this.entityType = entityType;
   this.iterator = this.hits.iterator();
   this.size = size;
   this.entityExtractor = restApi.createExtractor();
 }
 public SimpleIndexHits(long batchId, Class<T> entityType, final RestAPI restApi) {
   this.entityType = entityType;
   this.entityExtractor = restApi.createExtractor();
 }