private void serialize(Object objectToStore) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream(storagePath);
        try (ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream)) {
            objectOutputStream.writeObject(objectToStore);
        }
    }