String[] s = str.split(" ", 2);
return new InterestRateNotional(Currency.of(s[0].trim()), Double.parseDouble(s[1].trim()));
} else if (cls.isAssignableFrom(CommodityNotional.class)) {
return new CommodityNotional();
} else if (cls.isAssignableFrom(SecurityNotional.class)) {
return new SecurityNotional(UniqueId.parse(str));
} else if (cls.isAssignableFrom(VarianceSwapNotional.class)) {
String[] s = str.split(" ", 2);
return new VarianceSwapNotional(Currency.of(s[0].trim()), Double.parseDouble(s[1].trim()));
}
return null;