     
     /// Identifies the current application user.
     /// To reset the userId, set the value to nil.
-    public static var userIdentity: String? = BMSAnalytics.deviceId {
+    public var userIdentity: String? = BMSAnalytics.deviceId {
         didSet {
             if userIdentity != nil {
                 
-                if let sessionId = lifecycleEvents[Constants.Metadata.Analytics.sessionId] {
+                if let sessionId = BMSAnalytics.lifecycleEvents[Constants.Metadata.Analytics.sessionId] {
                     
                     let currentTime = Int64(NSDate().timeIntervalSince1970 * 1000.0)
                     

/**
    `BMSAnalytics` provides the internal implementation of the BMSAnalyticsSpec `Analytics` API.
*/
public class BMSAnalytics {
    
    
    // MARK: Properties (public)

        requestMetadata["osVersion"] = osVersion
        requestMetadata["model"] = model
        requestMetadata["deviceID"] = deviceId
        requestMetadata["mfpAppName"] = BMSAnalytics.appName
        requestMetadata["appStoreLabel"] = NSBundle.mainBundle().infoDictionary?["CFBundleName"] as? String ?? ""
        requestMetadata["appStoreId"] = NSBundle.mainBundle().bundleIdentifier ?? ""
        requestMetadata["appVersionCode"] = NSBundle.mainBundle().objectForInfoDictionaryKey(kCFBundleVersionKey as String) as? String ?? ""
