public class SipReader implements ItemReader<File> {
@BeforeStep
public void init(StepExecution stepExecution) {
// this.stepExecution = stepExecution;
Sip sip = new Sip(guid, URI.create(uri));
List<File> items = sip.getItems();
if (items.isEmpty()) {
throw new UnexpectedInputException("SIP has no item");
}
iterator = sip.getItems().iterator();
batchIngestTracker.init(guid);
}