[#ftl]
	[#if properties??]
		[#if properties.createResourceProvider??]
			[#if properties.createResourceProvider]
	<!-- RESOURCE PROVIDER BEAN -->
	<bean id="[=objectId].resourceProvider" class="ru.entaxy.esb.resources.provider.FileResourceProvider">
		<property name="protocol" value="[=objectId]" />
		<property name="rootDirectory" value="[=properties.rootDirectory]" />
	</bean>

    <service interface="ru.entaxy.esb.resources.EntaxyResourceProvider" ref="[=objectId].resourceProvider">
        <service-properties>
            <entry key="connection.name" value="[=objectId]"/>
            <entry key="protocol" value="[=objectId]"/>
        </service-properties>
    </service>
			[/#if]	
		[/#if]
	[/#if]

    <bean id="[=objectId]" class="ru.entaxy.platform.runtime.connections.file.FileConnectionComponent">
        [=utils.createBeanProperties(properties, "camel_", true)]
        <property name="rootDirectory" value="[=properties.rootDirectory]" />
    </bean>
