Source:
<code>public static DefaultPlatformConfiguration loadConfiguration() { DefaultPlatformConfiguration configuration = createConfiguration(); ServiceLoader<ConfigurationProvider> serviceLoader = ServiceLoader.load(ConfigurationProvider.class); for(ConfigurationProvider provider : serviceLoader) { Map<String, String> additionalStringProperties = provider.getStringProperties(); for(Map.Entry<String, String> property : additionalStringProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setProperty(property.getKey(), property.getValue()); } } <START> Map<String, List<String>> additionalListProperties = provider.getListProperties(); <END> for(Map.Entry<String, List<String>> property : additionalListProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setListProperty(property.getKey(), property.getValue()); } } Map<String, Boolean> additionalBooleanProperties = provider.getBooleanProperties(); for(Map.Entry<String, Boolean> property : additionalBooleanProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setBooleanProperty(property.getKey(), property.getValue()); } } Map<String, Integer> additionalIntegerProperties = provider.getIntegerProperties(); for(Map.Entry<String, Integer> property : additionalIntegerProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setIntProperty(property.getKey(), property.getValue()); } } Map<String, Long> additionalLongProperties = provider.getLongProperties(); for(Map.Entry<String, Long> property : additionalLongProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setLongProperty(property.getKey(), property.getValue()); } } } LOG.debug("Configuration created with properties", configuration.getPropertyKeys().size()); if(LOG.isTraceEnabled()) { for(String key : configuration.getPropertyKeys()) { LOG.debug("Dolphin Platform configured with '{}'='{}'", key, configuration.getProperty(key)); } } return configuration; }</code><technical_language>final</technical_language>

Target:
public static DefaultPlatformConfiguration loadConfiguration() { final DefaultPlatformConfiguration configuration = createConfiguration(); Assert.requireNonNull(configuration, "configuration"); final ServiceLoader<ConfigurationProvider> serviceLoader = ServiceLoader.load(ConfigurationProvider.class); for(ConfigurationProvider provider : serviceLoader) { final Map<String, String> additionalStringProperties = provider.getStringProperties(); for(Map.Entry<String, String> property : additionalStringProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setProperty(property.getKey(), property.getValue()); } } final Map<String, List<String>> additionalListProperties = provider.getListProperties(); for(Map.Entry<String, List<String>> property : additionalListProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setListProperty(property.getKey(), property.getValue()); } } final Map<String, Boolean> additionalBooleanProperties = provider.getBooleanProperties(); for(Map.Entry<String, Boolean> property : additionalBooleanProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setBooleanProperty(property.getKey(), property.getValue()); } } Map<String, Integer> additionalIntegerProperties = provider.getIntegerProperties(); for(Map.Entry<String, Integer> property : additionalIntegerProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setIntProperty(property.getKey(), property.getValue()); } } final Map<String, Long> additionalLongProperties = provider.getLongProperties(); for(Map.Entry<String, Long> property : additionalLongProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setLongProperty(property.getKey(), property.getValue()); } } } LOG.debug("Configuration created with properties", configuration.getPropertyKeys().size()); if(LOG.isTraceEnabled()) { for(String key : configuration.getPropertyKeys()) { LOG.debug("Dolphin Platform configured with '{}'='{}'", key, configuration.getProperty(key)); } } return configuration; }