}
}
}
private void doPersist() {
FileLock lock = null;
ObjectOutputStream ois = null;
try {
if (databaseConfigurations != null) {
databaseConfigurations.delete();
}
databaseConfigurations = FileUtil.getConfigRoot().createData("EdgeListDatabase");
lock = databaseConfigurations.lock();
ois = new ObjectOutputStream(databaseConfigurations.getOutputStream(lock));
ois.writeObject(edgeListDatabases);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} finally {
if (ois != null) {
try {
ois.close();
} catch (IOException e) {
}
}
if (lock != null) {
lock.releaseLock();
}
}
}