public void doSave(String path) {
        FileOutputStream outputStream = null;
        ObjectOutputStream serializer = null;
        try {
            outputStream = new FileOutputStream(path);
            serializer = new ObjectOutputStream(outputStream);
            serializer.writeObject(dictionary);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (serializer != null) {
                    serializer.close();
                }
            } catch (IOException e) {
                // no op
            }
            try {
                if (outputStream != null) {
                    outputStream.close();
                }
            } catch (IOException e) {
                // no op
            }

        }

    }