public static void save(HashMap<String, ArrayList<String>> map, String path) {
        try {
            ObjectOutputStream oos = new ObjectOutputStream(
                    new FileOutputStream(path));
            oos.writeObject(map);
            oos.flush();
            oos.close();
            // Handle I/O exceptions
        } catch (Exception e) {
            e.printStackTrace();
        }
    }