} finally {
IOUtils.closeQuietly(inputStream);
}
if (response != null) {
Content content = response.returnContent();
log.info("Replication content of type {} for {} delivered: {}", new Object[]{
type, Arrays.toString(replicationPackage.getPaths()), content});
} else {
throw new IOException("response is empty");
}