": " + ex.getMessage() );
// TODO: If we abort here due to image writing problem we will have
// problems later with non-existing transaction. We should really
// rethink the error handling login in the whole function. Anyway, we
// haven't changed anything yet so we can safely commit the tx.
txw.commit();
return;
}
ImageInstance previewInstance = addInstance( volume, previewFile,
ImageInstance.INSTANCE_TYPE_MODIFIED );
previewInstance.setColorChannelMapping( channelMap );