Source:
public static DefaultPlatformConfiguration loadConfiguration() { final DefaultPlatformConfiguration configuration = createConfiguration(); Assert.requireNonNull(configuration, "configuration"); final ServiceLoader<ConfigurationProvider> serviceLoader = ServiceLoader.load(ConfigurationProvider.class); for(final ConfigurationProvider provider : serviceLoader) { final Map<String, String> additionalStringProperties = provider.getStringProperties(); for(final 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(final 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(final Map.Entry<String, Boolean> property : additionalBooleanProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setBooleanProperty(property.getKey(), property.getValue()); } } final 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(final 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(final String key : configuration.getPropertyKeys()) { LOG.debug("Dolphin Platform configured with '{}'='{}'", key, configuration.getProperty(key, null)); } } return configuration; }

Target:
public static DefaultPlatformConfiguration loadConfiguration() { final DefaultPlatformConfiguration configuration = createConfiguration(); Assert.requireNonNull(configuration, "configuration"); final ServiceLoader<ConfigurationProvider> serviceLoader = ServiceLoader.load(ConfigurationProvider.class); for(final ConfigurationProvider provider : serviceLoader) { final Map<String, String> additionalStringProperties = provider.getStringProperties(); for(final 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(final 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(final Map.Entry<String, Boolean> property : additionalBooleanProperties.entrySet()) { if(!configuration.containsProperty(property.getKey())) { configuration.setBooleanProperty(property.getKey(), property.getValue()); } } final Map<String, Integer> additionalIntegerProperties = provider.getIntegerProperties(); for(final 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(final 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(final String key : configuration.getPropertyKeys()) { LOG.debug("Dolphin Platform configured with '{}'='{}'", key, configuration.getProperty(key, null)); } } return configuration; }