import org.elasticsearch.env.FailedToResolveConfigException;
import static org.elasticsearch.common.Strings.cleanPath;
import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
public class InternalSettingsPerparer {
public static Tuple<Settings, Environment> prepareSettings(Settings pSettings, boolean loadConfigSettings) {
<BUG>String[] ignorePrefixes = new String[]{"es.default.", "elasticsearch.default."};
ImmutableSettings.Builder settingsBuilder = settingsBuilder()

.put(pSettings)
.putProperties("elasticsearch.default.", System.getProperties())
</BUG>
.putProperties("es.default.", System.getProperties())

import org.elasticsearch.env.FailedToResolveConfigException;
import static org.elasticsearch.common.Strings.cleanPath;
import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
public class InternalSettingsPerparer {
public static Tuple<Settings, Environment> prepareSettings(Settings pSettings, boolean loadConfigSettings) {
String[] ignorePrefixes = new String[]{"es.default.", "elasticsearch.default."};
boolean useSystemProperties = !pSettings.getAsBoolean("config.ignore_system_properties", false);
ImmutableSettings.Builder settingsBuilder = settingsBuilder().put(pSettings);
if (useSystemProperties) {
settingsBuilder.putProperties("elasticsearch.default.", System.getProperties())
.putProperties("es.default.", System.getProperties())
