@Override
    public List<Album> getAlbums() throws RemoteException {
        List<Album> albums = new ArrayList<Album>();
        File file = new File(path.concat(albumsSERFile));
        if(file.exists()){
            try {
                FileInputStream fileInputStream = new FileInputStream(path.concat(albumsSERFile));
                ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);
                albums = (List<Album>) objectInputStream.readObject();
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (ClassNotFoundException e) {
                e.printStackTrace();
            }
        } else {
            try {
                file.createNewFile();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        return albums;
    }