public void run() throws Exception {
SemaphoreService service = getService();
for (Permit permit : migrationData.values()) {
permit.setInitialized();
}
service.insertMigrationData(migrationData);
}
@Override
protected void writeInternal(ObjectDataOutput out) throws IOException {
out.writeInt(migrationData.size());