throw new UnsupportedOperationException("Cannot provide value for " + field);
}
private Values getMdcValues(DynamicMdcMessageField field) {
Values result = new Values();
Set<String> mdcNames = getAllMdcNames();
Set<String> matchingMdcNames = GelfUtil.getMatchingMdcNames(field, mdcNames);
for (String mdcName : matchingMdcNames) {
String mdcValue = getMdcValue(mdcName);
if (mdcName != null) {
result.setValue(mdcName, mdcValue);
}
}
return result;
}