in src/main/java/org/apache/sling/pipes/models/PipeModel.java [91:110]
protected void init(){
LOG.debug("initialising Pipe Model");
if (root != null){
outputs = new HashMap<>();
for (Iterator<Resource> pipeCandidates = root.listChildren(); pipeCandidates.hasNext();){
Resource candidate = pipeCandidates.next();
try {
Pipe pipe = plumber.getPipe(candidate);
pipe.getBindings().addBinding(BINDING_CURRENTRESOURCE, currentResource.adaptTo(ValueMap.class));
pipe.getBindings().updateStaticBindings(BINDING_CURRENTRESOURCE, currentResource);
outputs.put(pipe.getName(), pipe.getOutput());
LOG.debug("found and initialized {}", pipe.getName());
} catch(Exception e){
LOG.error("unable to bind {} pipe", candidate.getPath(), e);
}
}
} else {
LOG.debug("no root node found");
}
}