                                 }else{
                                     bprint("Registry is not a BartlebyDocument",file:#file,function:#function,line:#line,category: "SSE")
                                 }
-                                
+
                             }
                         }
                     }
-                    
+
                 }catch{
                     bprint("Exception \(error) on \(id) \(event) \(data)",file:#file,function:#function,line:#line,category: "SSE")
                 }
             }
 
-            }) { (context) in
-                bprint("Login failed \(context)",file:#file,function:#function,line:#line,category: "SSE")
-                self.registryMetadata.online=false
+        }) { (context) in
+            bprint("Login failed \(context)",file:#file,function:#function,line:#line,category: "SSE")
+            self.registryMetadata.online=false
         }
 
     }

            // Missing
            let missing=document.missingContiguousTriggersIndexes()
            informations += missing.reduce("Missing indexes (\(missing.count)): ", combine: { (string, index) -> String in
                 return "\(string) \(index)"
            })
            informations += "\n"

            // TriggerIndexes
            let triggersIndexes=self.registryMetadata.triggersIndexes

            informations += "Trigger Indexes (\(triggersIndexes.count)): "
            informations += triggersIndexes.reduce("", combine: { (string, index) -> String in
                return "\(string) \(index)"
            })
            informations += "\n"

            // Owned Indexes
            let ownedTriggersIndexes=self.registryMetadata.ownedTriggersIndexes

            informations += "Owned Indexes (\(ownedTriggersIndexes.count)): "
            informations += ownedTriggersIndexes.reduce("", combine: { (string, index) -> String in
                return "\(string) \(index)"
            })
            informations += "\n"
            informations += "Last integrated trigger Index = \(self.registryMetadata.lastIntegratedTriggerIndex)\n"

        }

        return informations
    }

}
                        if let trigger:Trigger = Mapper<Trigger>().map(jsonTrigger){
                            self._triggeredDataBuffer[trigger]=dictionary
                        }else{
                            bprint("Trigger json mapping issue \(jsonTrigger)", file: #file, function: #function, line: #line, category: bprintCategoryFor(Trigger), decorative: false)
                        }
                    }
                }
