in src/main/java/org/apache/sling/bundleresource/impl/BundleResource.java [165:187]
Resource getChildResource(final String path) {
Resource result = null;
Map<String, Map<String, Object>> resources = this.subResources;
String subPath = null;
for(String segment : path.split("/")) {
if ( resources != null ) {
subPath = subPath == null ? segment : subPath.concat("/").concat(segment);
final Map<String, Object> props = resources.get(segment);
if ( props != null ) {
result = new BundleResource(this.resourceResolver, this.cache, this.mappedPath,
this.getPath().concat("/").concat(subPath), props, false);
resources = ((BundleResource)result).subResources;
} else {
result = null;
break;
}
} else {
result = null;
break;
}
}
return result;
}