in src/main/java/org/apache/sling/distribution/journal/bookkeeper/ContentPackageExtractor.java [87:101]
private void handlePath(ResourceResolver resourceResolver, String path) throws DistributionException {
try {
Resource resource = resourceResolver.getResource(path);
if (resource != null) {
Node node = resource.adaptTo(Node.class);
if (isContentPackage(node)) {
installPackage(path, node);
}
} else {
log.warn("Imported node {} does not exist. Skipping.", path);
}
} catch (Exception e) {
throw new DistributionException(format("Error trying to extract package at path %s because of '%s'", path, e.getMessage()), e);
}
}