public static Map<String, List<CombineFileSplitAdapter>> organizeSplitsByLocation(final InputSplit[] splits) throws IOException {
Map<String, List<CombineFileSplitAdapter>> locationSplits = new HashMap<String, List<CombineFileSplitAdapter>>();
for (InputSplit split : splits) {
CombineFileSplit csplit = (CombineFileSplit) split;
String location = extractLocation(csplit);
List<CombineFileSplitAdapter> splitsForLocation = locationSplits.get(location);
if (splitsForLocation == null) {