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

  <import resource="classpath:jbpm/configuration-template/local-emf-spring.xml" />

  <bean id="userGroupCallback" class="org.jbpm.services.task.identity.JBossUserGroupCallbackImpl">
    <constructor-arg value="jbpm/usergroup-callback/usergroups.properties" />
  </bean>

  <bean id="userGroupCallbackRuntimeEnvironment" parent="runtimeEnvironment">
    <property name="userGroupCallback" ref="userGroupCallback"/>
  </bean>

  <bean id="runtimeManager" class="org.kie.spring.factorybeans.RuntimeManagerFactoryBean" destroy-method="close">
    <property name="identifier" value="spring-rm"/>
    <property name="runtimeEnvironment" ref="userGroupCallbackRuntimeEnvironment"/>
  </bean>
</beans>
