public static function convertMapToUserProfile($userProfileMap)
    {
        $userId = $userProfileMap[self::USER_ID_KEY];
        $experimentBucketMap = array();
        foreach ($userProfileMap[self::EXPERIMENT_BUCKET_MAP_KEY] as $experimentId => $decisionMap) {
            $variationId = $decisionMap[self::VARIATION_ID_KEY];
            $experimentBucketMap[$experimentId] = new Decision($variationId);
        }

        return new UserProfile($userId, $experimentBucketMap);
    }