class Search {

	public List<ArtistEntity> searchforArtists(String searchItem, int limit) {
		SearchResult searchResult = this.spotifyAPICalls.searchInSpotify(searchItem, "artist", limit);
		if (searchResult != null) {
			this.artistSearchResults = createArtistData(searchResult.getArtists());
		} else {
			this.artistSearchResults = new ArrayList<>();
		}
		return this.artistSearchResults;
	}

}