/// <summary> /// Calls Lookup within try to suppress any Exception from outside of SDK application. /// </summary> /// <param name="userId"></param> /// <returns></returns> private UserProfileMap TryGetUserMap(string userId, string campaignTestKey) { try { LogInfoMessage.LookingUpUserProfileService(file, userId, campaignTestKey); return(this._userProfileService.Lookup(userId, campaignTestKey)); } catch (Exception ex) { LogErrorMessage.LookUpUserProfileServiceFailed(file, userId, campaignTestKey); } return(null); }