in src/main/java/org/apache/sling/feature/extension/unpack/Unpack.java [142:163]
public void unpack(InputStream stream, Map<String, Object> context) {
try {
String dir = (String) context.get("dir");
boolean override;
String index;
if (dir == null && this.defaultMapping != null) {
dir = this.registry.get(defaultMapping).get("dir");
override = Boolean.parseBoolean(this.registry.get(defaultMapping).get("override"));
index = this.registry.get(defaultMapping).get("index");
} else {
override = Boolean.parseBoolean((String) context.get("override"));
index = (String) context.get("index");
}
if (dir == null) {
throw new IllegalStateException("No target dir and no default configured");
}
unpack(dir, stream, override, index);
} catch (IOException ex) {
throw new UncheckedIOException(ex);
}
}