 }
 
 public func eventsWithColor(color: Event.Color, byColor: Bool = false, mappingBlock: YapDB.FetchConfiguration.MappingsConfigurationBlock? = .None) -> Configuration<Event> {
-    return Configuration(fetch: eventsWithColor(color, byColor: byColor, mappingBlock: mappingBlock)) { valueFromArchive($0) }
-}
-
-
-
+    return Configuration(fetch: eventsWithColor(color, byColor: byColor), itemMapper: Event.unarchive)
+}
+
+
+

    }

    public required init?(coder aDecoder: NSCoder) {
        let color: Event.Color? = valueFromArchive(aDecoder.decodeObjectForKey("color"))
        let uuid = aDecoder.decodeObjectForKey("uuid") as? String
        let date = aDecoder.decodeObjectForKey("date") as? NSDate
        value = Event(uuid: uuid!, color: color!, date: date!)

                return collection
            }

            if let event = Event.unarchive(object) {
                return event.color.description
            }
        }
