             let devId = authManager.deviceIdentity.id!
             
             
-            let urlBuilder = BMSPushUrlBuilder(applicationID: bmsClient.bluemixAppGUID!)
+            let urlBuilder = BMSPushUrlBuilder(applicationID: applicationId!)
             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) ||
                                    (!(WithUserId!.isEmpty) && (WithUserId!.compare(userId) != NSComparisonResult.OrderedSame)){
                                    
                                    // MARK: Updating the registered device ,userID, token or deviceId changed
                                    

        
        
        self.sendAnalyticsData(LogLevel.Debug, logStringData: "Entering retrieveAvailableTagsWithCompletitionHandler.")
        let urlBuilder = BMSPushUrlBuilder(applicationID: applicationId!)
        
        let resourceURL:String = urlBuilder.getTagsUrl()
        
