<?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
    <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="camel-mail-binding" targetNamespace="urn:switchyard-quickstart:camel-mail-binding:0.1.0">
        <service name="PrintService" promote="PrintService/PrintService">
            <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0">
                <mail:host>localhost</mail:host>
                <mail:username>camel</mail:username>
                <mail:consume accountType="imap">
                    <mail:initialDelay>0</mail:initialDelay>
                    <mail:delay>100</mail:delay>
                    <mail:copyTo>after-processing</mail:copyTo>
                </mail:consume>
            </mail:binding.mail>
        </service>
        <reference multiplicity="1..1" name="OutgoingPrintService" promote="PrintService/OutgoingPrintService">
            <mail:binding.mail xmlns:mail="urn:switchyard-component-camel-mail:config:1.0">
                <mail:host>localhost</mail:host>
                <mail:username>camel</mail:username>
                <mail:produce>
                    <mail:subject>Forwarded message</mail:subject>
                    <mail:from>camel@localhost</mail:from>
                    <mail:to>rider@camel</mail:to>
                </mail:produce>
            </mail:binding.mail>
        </reference>
        <component name="PrintService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.camel.mail.binding.PrintServiceImpl"/>
            <service name="PrintService">
                <interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
            </service>
            <reference name="OutgoingPrintService">
                <interface.java interface="org.switchyard.quickstarts.camel.mail.binding.PrintService"/>
            </reference>
        </component>
    </composite>
</switchyard>
