}
configuration.setHandlerNames(resolvedValue);
} else if (attribute.getName().equals(HANDLER_NAME.getName())) {
// no-op just ignore the name attribute
} else if (attribute.getName().equals(PROPERTIES.getName())) {
final PropertyConfigurable propertyConfigurable;
// A POJO configuration will have the same name as the handler
final PojoConfiguration pojoConfiguration = logContextConfiguration.getPojoConfiguration(configuration.getName());
if (pojoConfiguration == null) {
propertyConfigurable = configuration;
} else {
propertyConfigurable = pojoConfiguration;
}
if (model.hasDefined(PROPERTIES.getName())) {
for (Property property : PROPERTIES.resolveModelAttribute(context, model).asPropertyList()) {
propertyConfigurable.setPropertyValueString(property.getName(), property.getValue().asString());
}
}
} else {
if (attribute instanceof ConfigurationProperty<?>) {
((ConfigurationProperty<?>) attribute).setPropertyValue(context, model, configuration);