out.writeInt(migrationData.size());
for (Map.Entry<String, Permit> entry : migrationData.entrySet()) {
String key = entry.getKey();
Permit value = entry.getValue();
out.writeUTF(key);
value.writeData(out);
}
}
@Override
protected void readInternal(ObjectDataInput in) throws IOException {