/** The exchange notional field */
private static final String EXCHANGE_NOTIONAL_FIELD = "exchangeNotional";
@Override
public MutableFudgeMsg buildMessage(final FudgeSerializer serializer, final OISLegConvention object) {
final MutableFudgeMsg message = serializer.newMessage();
FudgeSerializer.addClassHeader(message, OISLegConvention.class);
serializer.addToMessage(message, OVERNIGHT_INDEX_CONVENTION_FIELD, null, object.getOvernightIndexConvention());
message.add(PAYMENT_TENOR_FIELD, object.getPaymentTenor().getPeriod().toString());
message.add(PAYMENT_LAG_FIELD, object.getPaymentLag());
message.add(SETTLEMENT_DAYS_FIELD, object.getSettlementDays());
message.add(BUSINESS_DAY_CONVENTION_FIELD, object.getBusinessDayConvention().getConventionName());
message.add(IS_EOM_FIELD, object.isIsEOM());
message.add(STUB_TYPE_FIELD, object.getStubType().name());
message.add(EXCHANGE_NOTIONAL_FIELD, object.isIsExchangeNotional());
message.add(NAME_FIELD, object.getName());
serializer.addToMessage(message, EXTERNAL_ID_BUNDLE_FIELD, null, object.getExternalIdBundle());
serializer.addToMessage(message, UNIQUE_ID_FIELD, null, object.getUniqueId());
return message;
}