public static void serializeSavedConnections() {
        String filename = "servers.ser";
        FileOutputStream fos;
        ObjectOutputStream out;
        try {
            fos = new FileOutputStream(filename);
            out = new ObjectOutputStream(fos);
            out.writeObject(savedConnections);

            out.close();
        } catch (IOException ignored) {}
    }