boolean concurrentEnabled = !"".equals(concurrent);
BeanDefinitionRegistry registry = parserContext.getRegistry();
//Definition of the RAM Directory
RootBeanDefinition ramDirectoryBeanDefinition = new RootBeanDefinition(
RAMDirectoryFactoryBean.class);
registry.registerBeanDefinition(RAM_DIRECTORY_ID_PREFIX + id, ramDirectoryBeanDefinition);
//Definition of the index factory
RootBeanDefinition simpleIndexFactoryBeanDefinition = new RootBeanDefinition(
SimpleIndexFactoryBean.class);
simpleIndexFactoryBeanDefinition.setPropertyValues(new MutablePropertyValues());
simpleIndexFactoryBeanDefinition.getPropertyValues()
.addPropertyValue(DIRECTORY_ATTRIBUTE, new RuntimeBeanReference(RAM_DIRECTORY_ID_PREFIX + id));
simpleIndexFactoryBeanDefinition.getPropertyValues()
.addPropertyValue(CREATE_ATTRIBUTE, new Boolean(create));
//Configuration of the analyzer of the factory
configureAnalyzer(element, simpleIndexFactoryBeanDefinition, parserContext);