class PlayerLogic {

	public AlbumEntity playAlbum(int albumNumber) {
		if (this.search.getAlbumSearchResults().size() > albumNumber) {
			if (this.suppressed) {
				this.postSuppressionAction = PostSuppressionAction.PLAY_COLLECTION;
				this.collectionUriToPlay = this.search.getAlbumSearchResults().get(albumNumber).getUri();
			} else {
				this.spotifyAPICalls.playListFromUri(this.search.getAlbumSearchResults().get(albumNumber).getUri());
			}
			return this.search.getAlbumSearchResults().get(albumNumber);
		}
		this.logger.warn(ITME_NOT_FOUND);
		return null;
	}

}