final StubType stubTypeLeg = StubType.valueOf(message.getString(STUB_TYPE_LEG_FIELD));
final boolean exchangeNotional = message.getBoolean(EXCHANGE_NOTIONAL_FIELD);
final int paymentLag = message.getInt(PAYMENT_LAG_FIELD);
final CompoundingIborLegConvention convention = new CompoundingIborLegConvention(name, externalIdBundle, swapIndexConvention, paymentTenor,
compoundingType, compositionTenor, stubTypeCompound, settlementDays, isEOM, stubTypeLeg, exchangeNotional, paymentLag);
final FudgeField uniqueIdMsg = message.getByName(UNIQUE_ID_FIELD);
if (uniqueIdMsg != null) {
convention.setUniqueId(deserializer.fieldValueToObject(UniqueId.class, uniqueIdMsg));
}
return convention;
}