<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       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-3.1.xsd
	 http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">

    <camelContext xmlns="http://camel.apache.org/schema/spring">

        <route customId="true" id="route1">

            <!-- Read files from input directory -->
            <from uri="file://src/test/data/input"/>

            <!-- Transform content to UpperCase -->
            <process ref="myFileProcessor"/>

            <!-- Write converted file content -->
            <to uri="file://src/test/data/outputUpperCase"/>

            <!-- Transform content to LowerCase -->
            <transform>
                <simple>${body.toLowerCase()}</simple>
            </transform>

            <!-- Write converted file content -->
            <to uri="file://src/test/data/outputLowerCase"/>

            <!-- Display process completion message on console -->
            <transform>
                <simple>.......... File content conversion completed ..........</simple>
            </transform>
            <to uri="stream:out"/>

        </route>

    </camelContext>

    <bean id="myFileProcessor" class="com.baeldung.camel.processor.FileProcessor"/>
</beans>