@Override public List<DataMapDistributableWrapper> toDistributable(List<Segment> segments) throws IOException { List<DataMapDistributable> dataMapDistributables = dataMap.toDistributable(segments); List<DataMapDistributableWrapper> wrappers = new ArrayList<>(); for (DataMapDistributable distributable : dataMapDistributables) { wrappers.add(new DataMapDistributableWrapper(uniqueId, distributable)); } return wrappers; }