cls = DealAttributeEncoder.class.getClassLoader().loadClass(dealClass);
} catch (ClassNotFoundException ex) {
throw new OpenGammaRuntimeException("Unable to load deal class", ex);
}
MetaBean metaBean = JodaBeanUtils.metaBean(cls);
deal = (Deal) metaBean.builder().build();
for (Map.Entry<String, String> entry : tradeAttributes.entrySet()) {
String key = entry.getKey();
if (key.startsWith(DEAL_PREFIX) && !key.equals(DEAL_CLASSNAME) && !key.equals(DEAL_TYPE)) {
String propertyName = StringUtils.substringAfter(key, DEAL_PREFIX);
if (metaBean.metaPropertyExists(propertyName)) {