@Override
    public List<Artist> getArtists() throws RemoteException {
        List<Artist> artists = new ArrayList<Artist>();
        File file = new File(path.concat(artistsSERFile));
        if (file.exists()){
            try{
                FileInputStream fileInputStream = new FileInputStream(path.concat(artistsSERFile));
                ObjectInputStream objectInputStream = new ObjectInputStream(fileInputStream);
                artists = (List<Artist>) 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 artists;
    }