public static void loadConfig() {
        properties = new Properties();
        FileInputStream fis = null;
        try {
            fis = new FileInputStream(CONFIG_FILE);
            properties.load(fis);
            DB_NAME = properties.getProperty("DB_NAME", "test");
            JDBC = properties.getProperty("JDBC", "jdbc:h2:");
            DB_USER = properties.getProperty("DB_USER", "sa");
            DB_USER_PASS = properties.getProperty("DB_USER_PASS", "");
            DB_DIR = properties.getProperty("DB_DIR", "db/");
            SQL_TABLES_FILE = properties.getProperty("SQL_TABLES_FILE", "");

            if (DB_DIR.trim().isEmpty()) {
                // Если путь к базе не указан, 
                //то пусть будет в папке пользователя
                DB_DIR = "~/";
            }
            DEBAG = Boolean.getBoolean(properties.getProperty("DEBAG", "false"));

        } catch (FileNotFoundException ex) {
            SMS.error(ex.getMessage());
            Logger.getLogger(ConfigureProgramm.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            SMS.error(ex.getMessage());
            Logger.getLogger(ConfigureProgramm.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            saveConfig();
            if (fis != null) {
                try {
                    fis.close();
                } catch (IOException ex) {
                    Logger.getLogger(ConfigureProgramm.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
    }