in src/main/java/org/apache/sling/scripting/sightly/engine/ResourceResolution.java [109:118]
private static Resource resolveComponentInternal(Resource base, String path) {
if (base == null || path == null) {
throw new NullPointerException("Arguments cannot be null");
}
Resource resource = recursiveResolution(base, path);
if (resource == null) {
resource = locateInSearchPath(base.getResourceResolver(), path);
}
return resource != null ? searchPathChecked(resource) : null;
}