 
     // MARK: upsert
 
-    public func upsert(instance: Collectible)->Bool {
+    public func upsert(instance: Collectible) -> Bool {
         if let collection=self._collectionByName(instance.d_collectionName) as? CollectibleCollection {
             collection.add(instance)
             return true

        throw SecurityScopedBookMarkError.BookMarkFailed(message: "Invalid path Error for \(url)")
    }

    private func _getBookMarkKeyFor(url: NSURL, appScoped: Bool=false, documentfileURL: NSURL?=nil)->String {
        if let path=url.path {
            return "\(path)-\((appScoped ? "YES" : "NO" ))-\(documentfileURL?.path ?? Default.NO_PATH ))"
        } else {

        return result
    }

    public func deleteByIds(instancesUIDs: [String], fromCollectionWithName: String) -> Bool {
        var result=true
        for instanceUID in instancesUIDs {
            result=result&&self.deleteById(instanceUID, fromCollectionWithName: fromCollectionWithName)
