[#ftl attributes={"generated.type":"blueprint.fragment"}]
	<!-- 
		BEGIN legacy components
		@Deprecated
		
		Entry point: "direct-vm:" + endpointName + "-out-connector-" + systemName
		endpointName = [type].[protocol].[classifier]
		
	-->
    <bean id="outConnector-legacy" class="ru.entaxy.esb.system.profile.commons.connectors.out.DirectVMOutConnectorImpl">
        <property name="endpointName" value="[=properties.type].[=properties.protocol].[=properties.classifier]"/>
        <property name="systemName" value="[=properties.systemName]"/>
        <property name="params">
            <map>
                <entry key="role" value="[=properties.classifier]"/>
                <entry key="type" value="[=properties.type]"/>
                <entry key="subtype" value="[=properties.protocol]"/>
            </map>
        </property>
    </bean>

    <service ref="outConnector-legacy" auto-export="interfaces">
        <service-properties>
            <entry key="endpointName" value="[=properties.type]"/>
            <entry key="systemName" value="[=properties.systemName]"/>
        </service-properties>
    </service>
    
	<route id="[=properties.connectorId].root-route-legacy">
 		<!-- 
			backward compatible entry point
			"direct-vm:" + endpointName + "-out-connector-" + systemName
			endpointName = [type].[protocol].[classifier]
		-->
		<from uri="direct-vm:[=properties.type].[=properties.protocol].[=properties.classifier]-out-connector-[=properties.systemName]" />
		<to uri="direct-vm:[=properties.connectorId]-entry-point" />
    </route>
   	<!-- 
		END legacy components
	-->
