CacheWriterConfiguration cacheWriterConfiguration = cacheConfiguration.getCacheWriterConfiguration();
if (cacheWriterConfiguration != null && !CacheConfiguration.DEFAULT_CACHE_WRITER_CONFIGURATION.equals(cacheWriterConfiguration)) {
element.addChildElement(new CacheWriterConfigurationElement(element, cacheWriterConfiguration));
}
addAllFactoryConfigsAsChildElements(element, "cacheDecoratorFactory", cacheConfiguration.getCacheDecoratorConfigurations());
TerracottaConfiguration terracottaConfiguration = cacheConfiguration.getTerracottaConfiguration();
if (terracottaConfiguration != null) {
element.addChildElement(new TerracottaConfigurationElement(element, terracottaConfiguration));
}
if (cacheConfiguration.isSearchable()) {