Currency callCurrency = currencyBeanToCurrency(bean.getCallCurrency());
Currency paymentCurrency = currencyBeanToCurrency(bean.getPaymentCurrency());
Expiry expiry = expiryBeanToExpiry(bean.getExpiry());
ZonedDateTime settlementDate = Converters.zonedDateTimeBeanToDateTimeWithZone(bean.getSettlementDate());
boolean deliverInCallCurrency = bean.isDeliverInCallCurrency();
NonDeliverableFXDigitalOptionSecurity sec = new NonDeliverableFXDigitalOptionSecurity(putCurrency, callCurrency,
bean.getPutAmount(), bean.getCallAmount(),
paymentCurrency, expiry, settlementDate, bean.getIsLong(),
deliverInCallCurrency);
return sec;
}