private void registerCachingInterceptor(String cachingInterceptorId,
BeanDefinitionRegistry registry,
CacheSetupStrategyPropertySource propertySource) {
MutablePropertyValues propertyValues = new MutablePropertyValues();
RootBeanDefinition cachingInterceptor = new RootBeanDefinition(
MethodMapCachingInterceptor.class, propertyValues);
propertyValues.addPropertyValue(propertySource
.getCacheKeyGeneratorProperty());
propertyValues.addPropertyValue(propertySource
.getCacheProviderFacadeProperty());
propertyValues.addPropertyValue(propertySource
.getCachingListenersProperty());
propertyValues.addPropertyValue(propertySource.getCachingModelsProperty());
registry.registerBeanDefinition(cachingInterceptorId, cachingInterceptor);
}