<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns="http://www.springframework.org/schema/integration"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
            https://www.springframework.org/schema/beans/spring-beans.xsd
            http://www.springframework.org/schema/integration
            https://www.springframework.org/schema/integration/spring-integration.xsd">

	<channel id="splitter" />

	<splitter id="upstream-splitter" input-channel="splitter" output-channel="upstream-splits" />

	<splitter id="downstream-splitter" input-channel="upstream-splits" output-channel="downstream-splits" />

	<aggregator id="first-aggregator" input-channel="downstream-splits" output-channel="pre-output" />

	<aggregator id="second-aggregator" input-channel="pre-output" />

	<channel id="router" />

	<recipient-list-router id="upstream-router" input-channel="router" apply-sequence="true">
		<recipient channel="upstream-splits" />
		<recipient channel="upstream-another" />
	</recipient-list-router>

	<splitter id="downstream-another" input-channel="upstream-another" output-channel="downstream-splits" />

</beans:beans>
