values.put(fullyQualifiedKey(moduleDefinition, name), nakedPS.getProperty(name));
}
EnumerablePropertySource<?> modulePS = new MapPropertySource(propertySourceName, values);
ConfigurableEnvironment moduleEnvironment = new StandardEnvironment();
// Append the rootEnvironment
moduleEnvironment.merge(rootEnvironment);
// The global environment has been loaded by boot too and
// its PS of interest was also named "applicationConfigurationProperties"
moduleEnvironment.getPropertySources().addBefore(APPLICATION_CONFIGURATION_PROPERTIES, modulePS);
return moduleEnvironment;
}