private ImportWaveletState importWavelet(WaveId sourceWaveId, WaveletId sourceWaveletId)
throws IOException {
ImportWaveletState state = ImportWaveletState.NOTHING_DONE;
WaveId targetWaveId = DomainConverter.convertWaveId(sourceWaveId, waveDomain);
WaveletId targetWaveletId;
try {
targetWaveletId = DomainConverter.convertWaveletId(sourceWaveletId, waveDomain);
} catch (InvalidParticipantAddress ex) {
throw new IOException(ex);
}
Set<AttachmentId> attachmentIds = new HashSet<AttachmentId>();
Console.println(" wavelet " + targetWaveletId.serialise());
for (int part=0 ; ; part++) {
File deltasFile = new File(fileNames.getDeltasFilePath(sourceWaveId, sourceWaveletId, part));
if (!deltasFile.exists()) {
break;
}