/** The payment lag field */
private static final String PAYMENT_LAG_FIELD = "paymentLag";
@Override
public MutableFudgeMsg buildMessage(final FudgeSerializer serializer, final VanillaIborLegConvention object) {
final MutableFudgeMsg message = serializer.newMessage();
FudgeSerializer.addClassHeader(message, VanillaIborLegConvention.class);
serializer.addToMessage(message, IBOR_INDEX_CONVENTION_FIELD, null, object.getIborIndexConvention());
message.add(ADVANCE_FIXING_FIELD, object.isIsAdvanceFixing());
message.add(STUB_TYPE_FIELD, object.getStubType().name());
message.add(INTERPOLATOR_NAME_FIELD, object.getInterpolationMethod());
message.add(NAME_FIELD, object.getName());
message.add(RESET_TENOR_FIELD, object.getResetTenor().getPeriod().toString());
message.add(IS_EOM_FIELD, object.isIsEOM());
message.add(SETTLEMENT_DAYS_FIELD, object.getSettlementDays());
message.add(EXCHANGE_NOTIONAL_FIELD, object.isIsExchangeNotional());
message.add(PAYMENT_LAG_FIELD, object.getPaymentLag());
serializer.addToMessage(message, EXTERNAL_ID_BUNDLE_FIELD, null, object.getExternalIdBundle());
serializer.addToMessage(message, UNIQUE_ID_FIELD, null, object.getUniqueId());
return message;
}