in src/main/java/org/apache/sling/provisioning/model/EffectiveModelProcessor.java [64:82]
protected KeyValueMap<String> processSettings(KeyValueMap<String> settings, final Feature newFeature, final RunMode newRunMode) {
KeyValueMap<String> newSettings = new KeyValueMap<String>();
for (final Entry<String, String> entry : settings) {
newSettings.put(entry.getKey(), replace(newFeature, entry.getValue(),
new VariableResolver() {
@Override
public String resolve(final Feature feature, final String name) {
if ( "sling.home".equals(name) ) {
return "${sling.home}";
}
if ( options.getVariableResolver() != null ) {
return options.getVariableResolver().resolve(newFeature, name);
}
return newFeature.getVariables().get(name);
}
}));
}
return newSettings;
}