Source:
<code>public <K, V> CacheConfig<K, V> asCacheConfig(SerializationService serializationService) { CacheConfig<K, V> config = new CacheConfig(); config.setName(name); config.setManagerPrefix(managerPrefix); config.setUriString(uriString); config.setBackupCount(backupCount); config.setAsyncBackupCount(asyncBackupCount); config.setInMemoryFormat(InMemoryFormat.valueOf(inMemoryFormat)); config.setEvictionConfig(evictionConfigHolder.asEvictionConfg(serializationService)); config.setWanReplicationRef(wanReplicationRef); config.setKeyClassName(keyClassName); config.setValueClassName(valueClassName); config.setCacheLoaderFactory(serializationService.toObject(cacheLoaderFactory)); config.setCacheWriterFactory(serializationService.toObject(cacheWriterFactory)); config.setExpiryPolicyFactory(serializationService.toObject(expiryPolicyFactory)); config.setReadThrough(isReadThrough); config.setWriteThrough(isWriteThrough); config.setStoreByValue(isStoreByValue); config.setManagementEnabled(isManagementEnabled); config.setStatisticsEnabled(isStatisticsEnabled); config.setHotRestartConfig(hotRestartConfig); config.setEventJournalConfig(eventJournalConfig); config.setSplitBrainProtectionName(splitBrainProtectionName); if (listenerConfigurations != null && !listenerConfigurations.isEmpty()) { config.setListenerConfigurations(); listenerConfigurations .forEach(listener -> config.addCacheEntryListenerConfiguration(serializationService.toObject(listener))); } config.setMergePolicyConfig(mergePolicyConfig); config.setDisablePerEntryInvalidationEvents(disablePerEntryInvalidationEvents); if (cachePartitionLostListenerConfigs != null) { List<CachePartitionLostListenerConfig> partitionLostListenerConfigs = new ArrayList<>( cachePartitionLostListenerConfigs.size()); cachePartitionLostListenerConfigs.forEach(listenerConfigHolder -> partitionLostListenerConfigs <START> .add(listenerConfigHolder.asListenerConfig(serializationService))); <END> } return config; }</code><technical_language>create fill a temporary ArrayList drop filling it. I guess miss a config.setPartitionLostListenerConfigs() call here</technical_language>

Target:
public <K, V> CacheConfig<K, V> asCacheConfig(SerializationService serializationService) { CacheConfig<K, V> config = new CacheConfig(); config.setName(name); config.setManagerPrefix(managerPrefix); config.setUriString(uriString); config.setBackupCount(backupCount); config.setAsyncBackupCount(asyncBackupCount); config.setInMemoryFormat(InMemoryFormat.valueOf(inMemoryFormat)); config.setEvictionConfig(evictionConfigHolder.asEvictionConfg(serializationService)); config.setWanReplicationRef(wanReplicationRef); config.setKeyClassName(keyClassName); config.setValueClassName(valueClassName); config.setCacheLoaderFactory(serializationService.toObject(cacheLoaderFactory)); config.setCacheWriterFactory(serializationService.toObject(cacheWriterFactory)); config.setExpiryPolicyFactory(serializationService.toObject(expiryPolicyFactory)); config.setReadThrough(isReadThrough); config.setWriteThrough(isWriteThrough); config.setStoreByValue(isStoreByValue); config.setManagementEnabled(isManagementEnabled); config.setStatisticsEnabled(isStatisticsEnabled); config.setHotRestartConfig(hotRestartConfig); config.setEventJournalConfig(eventJournalConfig); config.setSplitBrainProtectionName(splitBrainProtectionName); if (listenerConfigurations != null && !listenerConfigurations.isEmpty()) { config.setListenerConfigurations(); listenerConfigurations .forEach(listener -> config.addCacheEntryListenerConfiguration(serializationService.toObject(listener))); } config.setMergePolicyConfig(mergePolicyConfig); config.setDisablePerEntryInvalidationEvents(disablePerEntryInvalidationEvents); if (cachePartitionLostListenerConfigs != null) { List<CachePartitionLostListenerConfig> partitionLostListenerConfigs = new ArrayList<>( cachePartitionLostListenerConfigs.size()); cachePartitionLostListenerConfigs.forEach(listenerConfigHolder -> partitionLostListenerConfigs .add(listenerConfigHolder.asListenerConfig(serializationService))); config.setPartitionLostListenerConfigs(partitionLostListenerConfigs); } return config; }