public void skipForward() throws JavaLayerException, FileNotFoundException {



        if (actPlaylist != null) {
            if (isShuffle()) {
                if (playing) {
                    stopped = true;
                    this.stop();

                    setActTrack(repository.getMp3Collection().get(shuffleValue(repository.getMp3Collection().size())));
                    this.play();
                } else {
                    setActTrack(repository.getMp3Collection().get(shuffleValue(repository.getMp3Collection().size())));

                }


            } else {

                if (playing) {
                    stopped = true;
                    this.stop();
                    if (trackNo < actPlaylist.getPlaylist().size() - 1) {
                        setActTrack(actPlaylist.getTrack(++trackNo));
                    } else {
                        trackNo = 0;
                        setActTrack(actPlaylist.getTrack(trackNo));
                    }
                    this.play();
                } else {
                    if (trackNo < actPlaylist.getPlaylist().size() - 1) {
                        setActTrack(actPlaylist.getTrack(++trackNo));
                    } else {
                        trackNo = 0;
                        setActTrack(actPlaylist.getTrack(trackNo));
                    }
                }
            }
        } else {
            setActTrack(repository.getMp3Collection().get(shuffleValue(repository.getMp3Collection().size())));
            if (playing) {
                stopped = true;
                stop();
                play();
            }
        }

    }