in src/main/java/org/apache/sling/caconfig/impl/def/DefaultConfigurationInheritanceStrategy.java [73:86]
public Resource getResource(@NotNull Iterator<Resource> configResources) {
if (!config.enabled()) {
return null;
}
if (!configResources.hasNext()) {
return null;
}
Resource primary = configResources.next();
if (!isPropertyInheritance(primary) || !configResources.hasNext()) {
return primary;
}
Map<String, Object> mergedProps = getInheritedProperties(primary.getValueMap(), configResources);
return new ConfigurationResourceWrapper(primary, new ValueMapDecorator(mergedProps));
}