private Partitions loadPartitionFromStream(InputStream stream, String location) {

        try {

            return mapper.readValue(stream, Partitions.class);

        } catch (IOException e) {
            throw new SdkClientException("Error while loading partitions " +
                    "file from " + location, e);
        } finally {
            IOUtils.closeQuietly(stream, null);
        }
    }
Loads the partition files from the {@link #PARTITIONS_OVERRIDE_RESOURCE_PATH}. If no files are present, then
loads the partition files from the {@link #PARTITIONS_RESOURCE_PATH}
<p/>
Builds the {@link RegionMetadata} from the partition files.
aws-java-sdk-core/src/main/java/com/amazonaws/partitions/PartitionsLoader.java