class PlayerLogic {

	public TrackEntity getCurrentSong() {
		CurrentlyPlayingContext currentlyPlayingContext = this.spotifyAPICalls.getCurrentPlayingContext();
		if (currentlyPlayingContext != null && currentlyPlayingContext.getItem() != null) {
			Track[] track = { currentlyPlayingContext.getItem() };
			return this.search.createTrackData(new Paging.Builder<Track>().setItems(track).build()).get(0);
		}
		return null;

	}

}