Currency currency = defn.getCurrency();
int pointValue = defn.getPointValue();
boolean isMargined = defn.isIsMargined();
double strike = defn.getStrike().doubleValue();
OptionType optionType = defn.getOptionType();
ExerciseType exerciseType = defn.getExerciseType().convert();
switch (defn.getListedFutureOptionType()) {
case EQUITY_INDEX_FUTURE_OPTION:
return new EquityIndexFutureOptionSecurity(exchange, expiry, exerciseType, underlyingId, pointValue,
isMargined, currency, strike, optionType);