public void sendTradeRequest(String text) {
String[] tokens = text.split("\\s");
String quantityString = tokens[0];
String ticker = tokens[1];
int quantity = Integer.parseInt(quantityString);
TradeRequest tr = new TradeRequest();
tr.setAccountName("ACCT-123");
tr.setBuyRequest(true);
tr.setOrderType("MARKET");
tr.setTicker(ticker);
tr.setQuantity(quantity);
tr.setRequestId("REQ-1");
tr.setUserName("Joe Trader");
tr.setUserName("Joe");
stockServiceGateway.send(tr);
}