in src/main/java/org/apache/sling/distribution/journal/bookkeeper/PackageHandler.java [88:101]
InputStream stream(PackageMessage pkgMsg) throws DistributionException {
if (pkgMsg.getPkgBinary() != null) {
return new ByteArrayInputStream(pkgMsg.getPkgBinary());
}
String pkgBinRef = pkgMsg.getPkgBinaryRef();
if (pkgBinRef != null) {
try {
return binaryStore.get(pkgBinRef);
} catch (IOException io) {
throw new DistributionException(io.getMessage(), io);
}
}
return new ByteArrayInputStream(new byte[0]);
}