code: public void replace(String name, PropertySource<?> propertySource) {
          if (logger.isDebugEnabled()) {
              logger.debug("Replacing PropertySource '" + name + "' with '" + propertySource.getName() + "'");
          }
          int index = assertPresentAndGetIndex(name);
          this.propertySourceList.set(index, propertySource);
      }
docs: Replace the property source with the given name with the given property
  source object.
  
  @param name the name of the property source to find and replace
  @param propertySource the replacement property source
  @throws IllegalArgumentException if no property source with the given name is
  present
  @see #contains