List<Map<String, Object>> models = new ArrayList<Map<String, Object>>();
Map<String, Object> model = new HashMap<String, Object>();
List<Security> securities = new ArrayList<Security>();
Header header = new Header();
header.setBeginString("FIX 4.1");
header.setBodyLength(20);
header.setMsgSeqNum(1);
header.setMsgType("0");
header.setSendCompId("INVMGR");
header.setTargetCompId("BRKR");
Trailer trailer = new Trailer();
trailer.setCheckSum(220);
Order order = new Order();
order.setAccount("BE.CHM.001");
order.setClOrdId("CHM0001-01");
order.setText("this is a camel - bindy test");
// 1st security
Security security = new Security();
security.setIdSource("4");
security.setSecurityCode("BE0001245678");
security.setSide("1");
securities.add(security);
// 2nd security
security = new Security();
security.setIdSource("5");
security.setSecurityCode("BE0009876543");
security.setSide("2");
securities.add(security);
// 3rd security
security = new Security();
security.setIdSource("6");
security.setSecurityCode("BE0009999999");
security.setSide("3");
securities.add(security);
order.setSecurities(securities);
order.setHeader(header);
order.setTrailer(trailer);
model.put(order.getClass().getName(), order);
model.put(header.getClass().getName(), header);
model.put(trailer.getClass().getName(), trailer);
models.add(model);
return models;
}