}
final HttpHeaders preflightHeaders = new DefaultHttpHeaders();
for (Entry<CharSequence, Callable<?>> entry : this.preflightHeaders.entrySet()) {
final Object value = getValue(entry.getValue());
if (value instanceof Iterable) {
preflightHeaders.addObject(entry.getKey(), (Iterable<?>) value);
} else {
preflightHeaders.addObject(entry.getKey(), value);
}
}
return preflightHeaders;