code: public CacheManagerBuilder<T> replacing(ServiceCreationConfiguration<?> overwriteServiceConfiguration) {
      ServiceCreationConfiguration<?> existingConfiguration = configBuilder.findServiceByClass(overwriteServiceConfiguration.getClass());
      return new CacheManagerBuilder<>(this, configBuilder.removeService(existingConfiguration)
        .addService(overwriteServiceConfiguration));
    }
docs: Replaces an existing {@link ServiceCreationConfiguration} of the same type on the returned builder.
  <p>
  Duplicate service creation configuration will cause a cache manager to fail to initialize.
  
  @param overwriteServiceConfiguration the new {@code ServiceCreationConfiguration} to use
  @return a new builder with the replaced configuration