public StoreMessageResultIterator(
     MessageMapper<Id> mapper,
     Mailbox<Id> mailbox,
     MessageRange range,
     int batchSize,
     org.apache.james.mailbox.model.MessageResult.FetchGroup group) {
   this.mailbox = mailbox;
   this.group = group;
   this.mapper = mapper;
   this.from = range.getUidFrom();
   this.cursor = this.from;
   this.to = range.getUidTo();
   this.batchSize = batchSize;
   this.type = range.getType();
   this.ftype = getFetchType(group);
 }