int quantity = order.quantity();
String symbol = order.symbol();
BigDecimal limit = order.limit(); //original signal value unless its relative in which case its not available
BigDecimal stop = order.stop(); //original signal value unless its relative in which case its not available
BigDecimal market = order.market();
Duration duration = order.timeInForce();
Integer ocaGroupId = order.oneCancelsAnother();
queue.add(eventFactory.createStartElement("", "", "action"));
queue.add(eventFactory.createCharacters(action.toString()));
queue.add(eventFactory.createEndElement("", "", "action"));
queue.add(eventFactory.createStartElement("", "", "quant"));
queue.add(eventFactory.createCharacters(Integer.toString(quantity)));
queue.add(eventFactory.createEndElement("", "", "quant"));
queue.add(eventFactory.createStartElement("", "", "symbol"));
queue.add(eventFactory.createCharacters(symbol));
queue.add(eventFactory.createEndElement("", "", "symbol"));
queue.add(eventFactory.createStartElement("", "", "limit"));
queue.add(eventFactory.createCharacters(limit.toString()));
queue.add(eventFactory.createEndElement("", "", "limit"));
queue.add(eventFactory.createStartElement("", "", "stop"));
queue.add(eventFactory.createCharacters(stop.toString()));
queue.add(eventFactory.createEndElement("", "", "stop"));
queue.add(eventFactory.createStartElement("", "", "market"));
queue.add(eventFactory.createCharacters(market.toString()));
queue.add(eventFactory.createEndElement("", "", "market"));
queue.add(eventFactory.createStartElement("", "", "tif"));
queue.add(eventFactory.createCharacters(duration.toString()));
queue.add(eventFactory.createEndElement("", "", "tif"));
queue.add(eventFactory.createStartElement("", "", "ocagroupid"));
queue.add(eventFactory.createCharacters(ocaGroupId==null?"":ocaGroupId.toString()));
queue.add(eventFactory.createEndElement("", "", "ocagroupid"));