if (file != null) {
SpringUtil.closeSingletones();
PackUtill pack = new PackUtill();
if (CommonUtill.getExtension(file).equals(Global.JNET_MAP_FILE_EXTENSION)){
pack.compresFromDir(file.getAbsolutePath(), Global.PATH_TO_DB);
} else {
pack.compresFromDir(file.getAbsolutePath() + "."+Global.JNET_MAP_FILE_EXTENSION, Global.PATH_TO_DB);
}
}