static InternalConfig load(LoadConfiguration loadConfig) throws JsonParseException, JsonMappingException, IOException {
        URL configUrl = getResource(loadConfig.configRelativePath, true, false);
        if (configUrl == null) {
            configUrl = getResource(loadConfig.configAbsolutePath, false, false);
        }

        InternalConfigJsonHelper config = loadfrom(configUrl, InternalConfigJsonHelper.class);
        InternalConfigJsonHelper configOverride;

        List<URL> overrideUrls = new ArrayList<URL>();
        for (String path : loadConfig.configOverrideRelativePaths) {
            overrideUrls.addAll(getResources(path, false, true));
            overrideUrls.addAll(getResources(path, false, false));
        }
        if (overrideUrls.isEmpty()) {
            log.debug("Configuration overrides " + loadConfig.configOverrideRelativePaths + " not found.");
            configOverride = new InternalConfigJsonHelper();
        } else {
            configOverride = loadAndMergeImportantAttributes(overrideUrls);
        }

        EndpointDiscoveryConfig endpointDiscoveryConfig = new EndpointDiscoveryConfig();

        URL endpointDiscoveryConfigUrl = getResource(ENDPOINT_DISCOVERY_CONFIG_ABSOLUTE_PATH, false, false);

        if (endpointDiscoveryConfigUrl != null) {
            endpointDiscoveryConfig = loadfrom(endpointDiscoveryConfigUrl, EndpointDiscoveryConfig.class);
        }

        InternalConfig merged = new InternalConfig(config, configOverride, endpointDiscoveryConfig);
        merged.setDefaultConfigFileLocation(configUrl);
        merged.setOverrideConfigFileLocations(overrideUrls);
        return merged;
    }
Loads and returns the AWS Java SDK internal configuration from the classpath.
aws-java-sdk-core/src/main/java/com/amazonaws/internal/config/InternalConfig.java