in src/main/java/org/apache/sling/caconfig/resource/impl/def/DefaultConfigurationResourceResolvingStrategy.java [502:522]
public String getResourcePath(
@NotNull Resource contentResource, @NotNull String bucketName, @NotNull String configName) {
if (!isEnabledAndParamsValid(contentResource, Collections.singleton(bucketName), configName)) {
return null;
}
String name = bucketName + "/" + configName;
Iterator<String> configPaths = this.findConfigRefs(contentResource, Collections.singleton(bucketName));
if (configPaths.hasNext()) {
String configPath = buildResourcePath(configPaths.next(), name);
log.trace(
"+ Building configuration path for name '{}' for resource {}: {}",
name,
contentResource.getPath(),
configPath);
return configPath;
} else {
log.trace("- No configuration path for name '{}' found for resource {}", name, contentResource.getPath());
return null;
}
}