} else if (attribute.getName().equals(ENCODING.getName())) {
final String resolvedValue = (resolveValue ? ENCODING.resolvePropertyValue(context, model) : model.asString());
configuration.setEncoding(resolvedValue);
} else if (attribute.getName().equals(FORMATTER.getName())) {
final String formatterName = configuration.getName();
final FormatterConfiguration fmtConfig;
if (logContextConfiguration.getFormatterNames().contains(formatterName)) {
fmtConfig = logContextConfiguration.getFormatterConfiguration(formatterName);
} else {
fmtConfig = logContextConfiguration.addFormatterConfiguration(null, PatternFormatter.class.getName(), formatterName, "pattern");
}
final String resolvedValue = (resolveValue ? FORMATTER.resolvePropertyValue(context, model) : model.asString());
fmtConfig.setPropertyValueString("pattern", resolvedValue);
configuration.setFormatterName(formatterName);
} else if (attribute.getName().equals(FILTER_SPEC.getName())) {
final ModelNode valueNode = (resolveValue ? FILTER_SPEC.resolveModelAttribute(context, model) : model);
final String resolvedValue = (valueNode.isDefined() ? valueNode.asString() : null);
configuration.setFilter(resolvedValue);