public Object restore() {
        try {
            return deserialize();
        } catch (IOException | ClassNotFoundException ex) {
            throw new StorageException("Could not restore the requested object: " + ex.getMessage());
        }
    }