code: public CacheConfigurationBuilder<K, V> withSizeOfMaxObjectGraph(long size) {
      return mapServiceConfiguration(DefaultSizeOfEngineConfiguration.class, existing -> ofNullable(existing)
        .map(e -> new DefaultSizeOfEngineConfiguration(e.getMaxObjectSize(), e.getUnit(), size))
        .orElse(new DefaultSizeOfEngineConfiguration(DEFAULT_MAX_OBJECT_SIZE, DEFAULT_UNIT, size)));
    }
docs: Adds or updates the {@link DefaultSizeOfEngineConfiguration} with the specified object graph maximum size to the configured
  builder.
  <p>
  {@link SizeOfEngine} is what enables the heap tier to be sized in {@link MemoryUnit}.
  
  @param size the maximum graph size
  @return a new builder with the added / updated configuration