in log4j-converter-config/src/main/java/org/apache/logging/converter/config/internal/v1/AbstractComponentParser.java [165:183]
private void handleChildrenProperties(
PropertiesSubset properties,
Log4j1ParserContext context,
Map<String, ? extends MethodHandle> attributeMap,
T componentBuilder) {
// Handle attributes
attributeMap.forEach((attributeName, attributeSetter) -> {
String value = extractProperty(properties, attributeName);
if (value == null) {
value = extractProperty(properties, StringUtils.decapitalize(attributeName));
}
if (value != null) {
invokeAttributeSetter(componentBuilder, attributeSetter, attributeName, value);
}
});
// Handle nested components
PropertiesUtils.partitionOnCommonPrefixes(properties)
.forEach(childProperties -> handleUnknownProperties(childProperties, context, componentBuilder));
}