public void run() {
setStatus(TaskStatus.PROCESSING);
logger.info("Started parsing file " + file);
MzMLUnmarshaller unmarshaller = new MzMLUnmarshaller(file);
totalScans = unmarshaller
.getObjectCountForXpath("/run/spectrumList/spectrum");
MzMLObjectIterator<Spectrum> spectrumIterator = unmarshaller
.unmarshalCollectionFromXpath("/run/spectrumList/spectrum",
Spectrum.class);
try {
while (spectrumIterator.hasNext()) {