             let devId = authManager.deviceIdentity.id!
             
             
-            let urlBuilder = BMSPushUrlBuilder(applicationID: bmsClient.bluemixAppGUID!)
+            let urlBuilder = BMSPushUrlBuilder(applicationID: applicationId!)
             let resourceURL:String = urlBuilder.getUnSubscribetagsUrl()
             
             let headers = urlBuilder.addHeader()

            let devId = authManager.deviceIdentity.id!
            
            
            let urlBuilder = BMSPushUrlBuilder(applicationID: bmsClient.bluemixAppGUID!)
            let resourceURL:String = urlBuilder.getSubscriptionsUrl()
            
            let headers = urlBuilder.addHeader()

                        let jsonResponse:NSDictionary = try! NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.AllowFragments) as! NSDictionary
                        
                        let rToken = jsonResponse.objectForKey(IMFPUSH_TOKEN) as! String
                        let rDevId = jsonResponse.objectForKey(IMFPUSH_DEVICE_ID) as! String
                        let userId = jsonResponse.objectForKey(IMFPUSH_USERID) as! String

                        if ((rToken.compare(token)) != NSComparisonResult.OrderedSame) || (devId.compare(rDevId) != NSComparisonResult.OrderedSame) || (userId != "anonymous") {
                            
                            // MARK: Updating the registered userID , token or deviceId changed
                            
                            self.sendAnalyticsData(LogLevel.Debug, logStringData: "Device token or DeviceId has changed. Sending update registration request.")
                            let resourceURL:String = urlBuilder.getSubscribedDevicesUrl(devId)
