<?xml version="1.0" encoding="UTF-8"?>
<!--
    Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
    default-lazy-init="true"
    xmlns:c="http://www.springframework.org/schema/c"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">

    <!--
        Fetch the aggregate aggregate.
    -->
    <bean id="test_aggregate" parent="mda.DOMResourceSourceStage"
        p:parserPool-ref="parserPool"
        p:DOMResource="classpath:test/input.xml"/>

    <!--
        Fetch and process the entities as a collection.
    -->
    <bean id="test_entities" parent="mda.CompositeStage">
        <property name="stages">
            <list>
                <ref bean="test_aggregate"/>
                <ref bean="disassemble"/>
            </list>
        </property>
    </bean>

</beans>