private static final String CACHE_MANAGER_CLASS = "org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBean";
@Override
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {
BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.rootBeanDefinition(CACHE_MANAGER_CLASS);
String configFileLocation = element.getAttribute("configuration");
if (StringUtils.hasText(configFileLocation)) {
beanDefinitionBuilder.addPropertyValue("configurationFileLocation", configFileLocation);
}
return beanDefinitionBuilder.getBeanDefinition();
}