/** The spot lag field */
private static final String SPOT_LAG_FIELD = "spotLag";
@Override
public MutableFudgeMsg buildMessage(final FudgeSerializer serializer, final InflationLegConvention object) {
final MutableFudgeMsg message = serializer.newMessage();
FudgeSerializer.addClassHeader(message, InflationLegConvention.class);
serializer.addToMessage(message, PRICE_INDEX_FIELD, null, object.getPriceIndexConvention());
message.add(BUSINESS_DAY_CONVENTION_FIELD, object.getBusinessDayConvention().getConventionName());
message.add(DAYCOUNT_FIELD, object.getDayCount().getConventionName());
message.add(IS_EOM_FIELD, object.isIsEOM());
message.add(MONTH_LAG_FIELD, object.getMonthLag());
message.add(SPOT_LAG_FIELD, object.getSpotLag());
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;
}