if (file != null) {
SpringUtil.closeSingletones();
PackUtill pack = new PackUtill();
if (logger.isDebugEnabled()) {
logger.debug("Loaded database: " + file);
logger.debug("Path to temp database folder: " + Global.PATH_TO_DB);
}
pack.decompresToDir(file.getAbsolutePath(), Global.PATH_TO_DB);
PreferencesConfig.userRoot().put(PreferencesConfig.KEY_LAST_DB_PATH, file.getAbsolutePath());
PreferencesConfig.savePreferences();
dynamicTree.fillTree();
DataController.getInstance().fireDataChanged();