public static void setCurrentTrack(Track newCurrent) {
        if(newCurrent == null)
            return;

        MediaPlayer oldCurrent = currentPlayback;
        currentTrack = newCurrent;
        String trackPath = "file:///" + newCurrent.get("filepath").replace("\\","/");

        try {
            trackPath = parseUrl(trackPath);
            currentPlayback = new MediaPlayer(new Media(trackPath));
        } catch (IllegalArgumentException e) {
            System.err.println("[ERROR]   IllegalArgumentException in Player, encoding string: " + trackPath);
            e.printStackTrace();
        } catch (Exception e) {
            System.err.println("[ERROR]   Unclassified exception in Player.parseUrl(), encoding string: " + trackPath);
            e.printStackTrace();
        }

        if(oldCurrent != null)
            oldCurrent.dispose();

        int i = playQueueTracks.indexOf(newCurrent);
        currentIndex = i;

        setPlaybackChain(i);
    }