final List<FudgeField> currencies = message.getAllByName(CURRENCY);
final List<FudgeField> sensitivities = message.getAllByName(SENSITIVITIES);
if (currencies.size() != sensitivities.size()) {
throw new OpenGammaRuntimeException("Should have same number of sensitivities as currencies");
}
MultipleCurrencyInflationSensitivity result = new MultipleCurrencyInflationSensitivity();
for (int i = 0; i < currencies.size(); i++) {
final Currency currency = Currency.of((String) currencies.get(i).getValue());
final InflationSensitivity sensitivity = deserializer.fieldValueToObject(InflationSensitivity.class, sensitivities.get(i));
result = result.plus(currency, sensitivity);
}
return result;
}