Map<String, List<Object>> headers = CastUtils.cast((Map<?, ?>)m.get(Message.PROTOCOL_HEADERS));
return new MetadataMap<String, Object>(headers, false, false, true);
}
public static void convertHeaderValuesToString(Map<String, List<Object>> headers, boolean delegateOnly) {
RuntimeDelegate rd = getOtherRuntimeDelegate();
if (rd == null && delegateOnly) {
return;
}
for (Map.Entry<String, List<Object>> entry : headers.entrySet()) {
List<Object> values = entry.getValue();