}
@Override
public InstrumentDefinition<?> visitSwapSecurity(final SwapSecurity security) {
ArgumentChecker.notNull(security, "swap security");
final InterestRateInstrumentType swapType = SwapSecurityUtils.getSwapType(security);
switch (swapType) {
case SWAP_FIXED_IBOR:
return getFixedIborSwapDefinition(security, SwapSecurityUtils.payFixed(security), false);
case SWAP_FIXED_IBOR_WITH_SPREAD:
return getFixedIborSwapDefinition(security, SwapSecurityUtils.payFixed(security), true);