}
origFileStream = setCurrentInputStream(origFileStream);
// init checksum calculation
if (isIntegrityCheckEnabled()) {
try {
origFileStream = new ChecksumInputStream(origFileStream, MessageDigest.getInstance("CRC32"));
} catch (NoSuchAlgorithmException e) {
setIntegrityCheckEnabled(false);
LOGGER.debug("Caught exception", e);
}
}