Bean orderBean = new Bean(HashMap.class, "order", "/order");
orderBean.bindTo("header",
orderBean.newBean(HashMap.class, "/order")
.bindTo("customerNumber", "header/customer/@number", new IntegerDecoder())
.bindTo("customerName", "header/customer")
.bindTo("privatePerson", "header/privatePerson")
).bindTo("orderItems",
orderBean.newBean(ArrayList.class, "/order")
.bindTo(orderBean.newBean(HashMap.class, "order-item")