// Run the pipeline and process images.
ops = pipeline.process(ops, params);
// Write images into chosen format.
outputData.mark();
outputData = writer.process(ops, params, outputData);
} catch (Exception e) {
LOGGER.error("processor-failure");
throw new ImageProcessorException(e);
}
} else {