}
}
public void restoreVersion(Folder folder) {
try {
Collection parentCollection = folder.getParentCollection();
if (parentCollection == null) {
throw new IllegalArgumentException("Parent collection cannot be null");
} else if (parentCollection.getId() == null) {
throw new IllegalArgumentException("Parent collection needs to be saved first");
}
Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
Node versionNode = session.getNodeByUUID(folder.getId());