class PlayerLogic {

	public TrackEntity playTrack(int trackNumber) {
		if (this.search.getTrackSearchResults().size() > trackNumber) {
			if (this.suppressed) {
				this.trackUriToPlay = this.search.getTrackSearchResults().get(trackNumber).getUri();
				this.postSuppressionAction = PostSuppressionAction.PLAY_TRACK;
			} else {
				this.spotifyAPICalls.playSongFromUri(this.search.getTrackSearchResults().get(trackNumber).getUri());
			}
			return this.search.getTrackSearchResults().get(trackNumber);
		}
		this.logger.warn(ITME_NOT_FOUND);
		return null;
	}

}