[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#import "templates:object-commons/common-utils.ftl" as utils]

<reference id="lockService" interface="ru.entaxy.platform.core.support.runtime.service.ServiceHolder"
           filter="(internalType=org.jgroups.blocks.locking.LockService)" availability="mandatory"/>
<bean id="[=objectId].clusterService" class="ru.entaxy.platform.core.support.runtime.cluster.JGroupsLockClusterService">
    <argument index="0" ref="lockService" />
    <property name="id" value="Connector"/>
</bean>

<route xmlns="http://camel.apache.org/schema/blueprint" id="[=objectId]">
	[#include "templates:model-timer/init.ftl"]
    [#if properties.routeProperties??]
    [#list properties.routeProperties as key, value]
    <routeProperty key="[=key]" value="[#if value?is_boolean][=value?c][#else][=value][/#if]" />
    [/#list]
    [/#if]
</route>
