CopyStrategyConfiguration copyStrategyConfiguration = cacheConfiguration.getCopyStrategyConfiguration();
if (copyStrategyConfiguration != null &&
!copyStrategyConfiguration.equals(CacheConfiguration.DEFAULT_COPY_STRATEGY_CONFIGURATION)) {
element.addChildElement(new CopyStrategyConfigurationElement(element, copyStrategyConfiguration));
}
ElementValueComparatorConfiguration elementValueComparatorConfiguration = cacheConfiguration
.getElementValueComparatorConfiguration();
if (elementValueComparatorConfiguration != null
&& !elementValueComparatorConfiguration.equals(CacheConfiguration.DEFAULT_ELEMENT_VALUE_COMPARATOR_CONFIGURATION)) {
element.addChildElement(new ElementValueComparatorConfigurationElement(element, elementValueComparatorConfiguration));
}
CacheWriterConfiguration cacheWriterConfiguration = cacheConfiguration.getCacheWriterConfiguration();
if (cacheWriterConfiguration != null && !CacheConfiguration.DEFAULT_CACHE_WRITER_CONFIGURATION.equals(cacheWriterConfiguration)) {
element.addChildElement(new CacheWriterConfigurationElement(element, cacheWriterConfiguration));