public XmlsonObject present(Merchant merchant) { final XmlsonObject root = new XmlsonObject("merchant"); root.addProperty("name", merchant.getName()); root.addProperty("id", merchant.getId()); root.addProperty("uri", String.format("/transactions/merchant/%d", merchant.getId())); return root; }