public static function convertUserProfileToMap($userProfile)
    {
        $userProfileMap = array(
            self::USER_ID_KEY => $userProfile->getUserId(),
            self::EXPERIMENT_BUCKET_MAP_KEY => array()
        );
        $experimentBucketMap = $userProfile->getExperimentBucketMap();
        foreach ($experimentBucketMap as $experimentId => $decision) {
            $userProfileMap[self::EXPERIMENT_BUCKET_MAP_KEY][$experimentId] = array(
                    self::VARIATION_ID_KEY => $decision->getVariationId()
                );
        }
        return $userProfileMap;
    }