public ResourceAccessBean() {
   order = new TradeOrder();
   order.setNShares(1000);
   order.setTicker(TradeOrder.Ticker.YYYY);
   order.setOrderType(TradeOrder.OrderType.BUY);
   order.setOrderClass(TradeOrder.OrderClass.MARKET);
 }
 /* JSF interface method to submit a trade to the RA/EIS (in trade.xhtml) */
 public void submitTrade() {
   infoBox = "\n -->" + order.toString() + infoBox;
   /* Use the Common Client Interface */
   try {
     response = connection.submitOrder(order);
     infoBox = "\n <--" + response.toString() + infoBox;
   } catch (TradeProcessingException ex) {
     infoBox = "\n <-- ERROR " + ex.getMessage() + infoBox;
   }
 }