mOutput.write(image);
} catch (PipeIOException e) {
throw new ActivityPipeProcessingException(e);
} catch (PipeTerminatedException e) {
throw new ActivityTerminatedException();
} catch (IOException e) {
throw new ActivityProcessingException(e);
} catch (PipeClosedException e) {
// Consumer does not want any more data, just stop.
}