Integer id = (Integer) root.get("CUSTOMER[1]/ID");
// Read the specific Customer from above and its related orders
Command custOrders = commandGroup.getCommand("customer and orders");
custOrders.setParameterValue("ID", id);
root = custOrders.executeQuery();
// Modify the first order and flush this change back to the database
root.setString("CUSTOMER[1]/orders[1]/PRODUCT", "Defibrillator");
Integer orderId = (Integer) root.get("CUSTOMER[1]/orders[1]/ID");
ApplyChangesCommand flush = commandGroup.getApplyChangesCommand();