public CacheConfig getCacheConfig() {
    final CacheConfig copy = new CacheConfig();
    copy.setDeclarativeConfig(cacheConfig);
    return copy;
  }
Gets the CacheConfig object used to configure additional Geode Cache components and features
(e.g. PDX).

@return a CacheConfig object with additional Geode Cache configuration meta-data used on
        startup to configure the Cache.
geode-core/src/main/java/org/apache/geode/distributed/ServerLauncher.java