public Beatmap GetBeatmapByIdentifiable(IMapIdentifiable beatmap) { Beatmap map; try { map = _dbOperator.GetBeatmapByIdentifiable(beatmap); if (map is null) { Notification.Push(I18NUtil.GetString("err-mapNotInDb"), I18NUtil.GetString("text-error")); } } catch (Exception ex) { Notification.Push($"Error while getting beatmap by IMapIdentifiable from database: {ex.Message}"); map = null; } return(map); }