return (T)tg;
}
- TransferableGraphFileReader reader = null;
try {
File modelFile = getProperty(MigrationStateKeys.MODEL_FILE);
- reader = new TransferableGraphFileReader(modelFile);
TimeLogger.log(MigrationStateImpl.class, "reading TG into memory from " + modelFile);
- TransferableGraph1 tg = reader.readTG();
+ TransferableGraph1 tg = TransferableGraphFileReader.read(modelFile);
TimeLogger.log(MigrationStateImpl.class, "read TG into memory from " + modelFile);
setProperty(MigrationStateKeys.CURRENT_TG, tg);
return (T)tg;
throw e;
} catch (Throwable t) {
throw new DatabaseException(t);
- } finally {
- uncheckedClose(reader);
}
} else if (MigrationStateKeys.CURRENT_TGS.equals(key)) {