spring-boot-project/spring-boot/src/main/java/org/springframework/boot/DefaultPropertiesPropertySource.java
/**
	 * Create a consume a new {@link DefaultPropertiesPropertySource} instance if the
	 * provided source is not empty.
	 * @param source the {@code Map} source
	 * @param action the action used to consume the
	 * {@link DefaultPropertiesPropertySource}
	 */
Create a consume a new  DefaultPropertiesPropertySource instance if the
provided source is not empty.
@param source the  Map source
@param action the action used to consume the
DefaultPropertiesPropertySource
Create a consume a new DefaultPropertiesPropertySource instance if the provided source is not empty . @param source the Map source @param action the action used to consume the DefaultPropertiesPropertySource
public static void ifNotEmpty(Map<String, Object> source, Consumer<DefaultPropertiesPropertySource> action) {
		if (!CollectionUtils.isEmpty(source) && action != null) {
			action.accept(new DefaultPropertiesPropertySource(source));
		}
	}
public static void ifNotEmpty ( Map < String , Object > source , Consumer < DefaultPropertiesPropertySource > action ) { if ( ! CollectionUtils . isEmpty ( source ) && action != null ) { action . accept ( new DefaultPropertiesPropertySource ( source ) ) ; } }
Create a consume a new {@link DefaultPropertiesPropertySource} instance if the
 provided source is not empty.
Create a consume a new { @link DefaultPropertiesPropertySource } instance if the provided source is not empty .