} catch (SAXException e) {
throw new RuntimeException(e);
} catch (TransformerException e) {
throw new RuntimeException(e);
}
GetStockQuoteResponse stockQuoteResponse = new GetStockQuoteResponse();
Quote quote = new Quote();
quote.setSymbol(stockQuote.getSymbol());
quote.setVolume(5000);
LastTrade lastTrade = new LastTrade();
lastTrade.setPrice(99);
lastTrade.setDate(Calendar.getInstance().getTimeInMillis());
quote.setLastTrade(lastTrade);
Change change = new Change();
change.setDollar(1);
change.setPercent(10);
change.setPositive(true);
quote.setChange(change);
stockQuoteResponse.setQuote(quote);
SAXOMBuilder builder = new SAXOMBuilder();
try {
Marshaller.marshal(stockQuoteResponse, builder);
} catch (MarshalException e) {
throw new RuntimeException(e);