     "locations": locations
     "index": index
     "Collections": Collections
-    "Config" : Config
+    "Config": Config
   }


    modulename = locations[typename]

    if not mod_cache[modulename]?
      mod = require(modulename)


      else
          throw Error("improperly implemented collection: #{modulename}")

    mod = mod_cache[modulename]

    if submodulename?
      mod = mod[submodulename]

    return mod.Collection

  Collections.register = (name, collection) ->
    collection_overrides[name] = collection
