for (Map.Entry<Long, ?> entry : map.entrySet()) {
byte[] dataBuffer = (byte[]) entry.getValue();
ObjectDataInput in = serializationService.createObjectDataInput(dataBuffer);
Data data;
try {
data = in.readData();
} catch (IOException e) {
throw new HazelcastException(e);
}
dataMap.put(entry.getKey(), data);
}