<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mappings xmlns="http://dozer.sourceforge.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd">
    <configuration>
        <variables>
            <variable name="ORIGIN">Web</variable>
        </variables>
    </configuration>
    <mapping>
        <class-a>org.switchyard.quickstarts.camel.dozer.abcorder.ABCOrder</class-a>
        <class-b>org.switchyard.quickstarts.camel.dozer.xyzorder.XyzOrder</class-b>
        <field custom-converter-id="_customMapping" custom-converter-param="org.switchyard.quickstarts.camel.dozer.MyMapping,map">
            <a>header.customerNum</a>
            <b>custId</b>
        </field>
        <field>
            <a>header.status</a>
            <b>priority</b>
        </field>
        <field>
            <a>orderItems.item</a>
            <b>lineItems</b>
        </field>
        <field>
            <a>header.orderNum</a>
            <b>orderId</b>
        </field>
    </mapping>
    <mapping>
        <class-a>org.switchyard.quickstarts.camel.dozer.abcorder.ABCOrder$OrderItems$Item</class-a>
        <class-b>org.switchyard.quickstarts.camel.dozer.xyzorder.LineItem</class-b>
        <field>
            <a>price</a>
            <b>cost</b>
        </field>
        <field>
            <a>quantity</a>
            <b>amount</b>
        </field>
        <field>
            <a>id</a>
            <b>itemId</b>
        </field>
    </mapping>
    <mapping>
        <class-a>org.apache.camel.component.dozer.VariableMapper</class-a>
        <class-b>org.switchyard.quickstarts.camel.dozer.xyzorder.XyzOrder</class-b>
        <field custom-converter-id="_variableMapping" custom-converter-param="${ORIGIN}">
            <a>literal</a>
            <b>origin</b>
        </field>
    </mapping>
    <mapping>
        <class-a>org.apache.camel.component.dozer.ExpressionMapper</class-a>
        <class-b>org.switchyard.quickstarts.camel.dozer.xyzorder.XyzOrder</class-b>
        <field custom-converter-id="_expressionMapping" custom-converter-param="header:approval">
            <a>expression</a>
            <b>approvalCode</b>
        </field>
    </mapping>
</mappings>
