 
     // MARK: - Maintenance
 
-
     public func destroyLocalEphemeralInstances() {
         for (dataSpaceUID, registry) in _registries {
             bprint("Destroying EphemeralInstances on \(dataSpaceUID)", file:#file, function:#function, line:#line, category: Default.BPRINT_CATEGORY)


    /**
     Dumps the bprint entries to a file.

     - parameter matching: the filter closure
     */
    public static func dumpBprintEntries(@noescape matching:(entry: BprintEntry) -> Bool,fileName:String?){
        let log=Bartleby.bprintEntries(matching)
        let folderPath=Bartleby.getSearchPath(NSSearchPathDirectory.ApplicationSupportDirectory)!.stringByAppendingString("Bartleby/logs/")
        let filePath=folderPath+"\(fileName ?? "" )\(CFAbsoluteTimeGetCurrent()).txt"



     - returns: a dump of the entries
     */
    public static func getBprintEntries(@noescape matching:(entry: BprintEntry) -> Bool )->String{
        let entries=Bartleby.bprintEntries.filter { (entry) -> Bool in
            return matching(entry: entry)
        }
        var infos=""
        var counter = 0
        for entry in entries{
            infos += "\(counter)# \(entry)\n"
            counter += 1
        }
        return infos
    }
