docs: public <T extends CacheConfig<K, V>> T copy(T target, boolean resolved) {
          target.setTenantControl(getTenantControl());
          target.setAsyncBackupCount(getAsyncBackupCount());
          target.setBackupCount(getBackupCount());
          target.setDisablePerEntryInvalidationEvents(isDisablePerEntryInvalidationEvents());
          target.setEvictionConfig(getEvictionConfig());
          target.setHotRestartConfig(getHotRestartConfig());
          target.setInMemoryFormat(getInMemoryFormat());
          if (resolved) {
              target.setKeyType(getKeyType());
              target.setValueType(getValueType());
          } else {
              target.setKeyClassName(getKeyClassName());
              target.setValueClassName(getValueClassName());
          }
  
          target.cacheLoaderFactory = cacheLoaderFactory.shallowCopy();
          target.cacheWriterFactory = cacheWriterFactory.shallowCopy();
          target.expiryPolicyFactory = expiryPolicyFactory.shallowCopy();
  
          target.listenerConfigurations = createConcurrentSet();
          for (DeferredValue<CacheEntryListenerConfiguration<K, V>> lazyEntryListenerConfig : listenerConfigurations) {
              target.listenerConfigurations.add(lazyEntryListenerConfig.shallowCopy());
          }
  
          target.setManagementEnabled(isManagementEnabled());
          target.setManagerPrefix(getManagerPrefix());
          target.setMergePolicy(getMergePolicy());
          target.setName(getName());
          target.setPartitionLostListenerConfigs(getPartitionLostListenerConfigs());
          target.setQuorumName(getQuorumName());
          target.setReadThrough(isReadThrough());
          target.setStatisticsEnabled(isStatisticsEnabled());
          target.setStoreByValue(isStoreByValue());
          target.setUriString(getUriString());
          target.setWanReplicationRef(getWanReplicationRef());
          target.setWriteThrough(isWriteThrough());
          target.setClassLoader(classLoader);
          target.serializationService = serializationService;
          return target;
      }