new RetryHelper().run(
new RetryHelper.VoidBody() {
@Override public void run() throws RetryableFailure, PermanentFailure {
CheckedTransaction tx = datastore.beginTransaction();
try {
ConvMetadata metadata = convMetadataStore.get(tx, convId);
Assert.check(metadata.hasImportMetadata(), "%s: Metadata has no import: %s",
convId, metadata);
Assert.check(metadata.getImportMetadata().getImportFinished(),
"%s: still importing: %s", convId, metadata);
MutationLog l = convSlobFacilities.getMutationLogFactory().create(tx, convId);
StateAndVersion stateAndVersion = l.reconstruct(null);
Assert.check(stateAndVersion.getVersion() > 0, "%s at version 0: %s",
convId, stateAndVersion);