Update the sample code for the new ArtisanProfileManager API for user profile and segmentation support.