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