public XmlsonObject present(TxactionList txactions, Locale locale) {
final XmlsonObject root = new XmlsonObject("transaction-list");
root.add(new XmlsonObject("count").addProperty("total", txactions.getTotalCount()));
final XmlsonArray list = new XmlsonArray("transactions");
for (TxactionListItem item : txactions) {
final XmlsonObject txaction = txactionPresenter.present(item.getTxaction(), locale);
if (item.getBalance() != null) {
txaction.add(moneyPresenter.present("balance", item.getBalance(), locale));
}
list.add(txaction);
}
root.add(list);
return root;
}