public static String searchDirectory() {
        try(BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8)) {
            prop.load(reader);
            return prop.getProperty("searchDirectory");
        } catch (IOException ex) {
            try {
                PropHandle.reset();
                BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
                prop.load(reader);
                return prop.getProperty("searchDirectory");
            } catch (FileNotFoundException ex1) {
                Logger.getLogger(ConfSetter.class.getName()).log(Level.SEVERE, null, ex1);
                throw new RuntimeException();
            } catch (IOException ex1) {
                Logger.getLogger(ConfSetter.class.getName()).log(Level.SEVERE, null, ex1);
                throw new RuntimeException();
            }
        }
    }