+
+- (NSDictionary *)serialize {
+ NSMutableDictionary* cfgEntries = [[NSMutableDictionary alloc] initWithCapacity:_entries.count];
+ for (id key in _entries) {
+ id serialized = [_entries[key] serialize];
+ if (serialized)
+ cfgEntries[key] = serialized;
+ }
+ return @{ @"name": _name, @"entries": cfgEntries };