 
   # Builds the metaModel JSON object and returns it.
   createMetaModel: () ->
-    metaModel = {}
+    metaModel = []
 
     @addClasses metaModel
     @addReferences metaModel

  addReferences: (metaModel) ->
    for reference in @graph.getReferences()

      metaModel[@graph.getName reference] =
        mType: Constants.REFERENCE
        name: @graph.getName reference
        sourceDeletionDeletesTarget: @graph.getSourceDeletionDeletesTarget reference

  addEnums: (metaModel) ->
    for thisMEnum in mEnum.getMEnums()

      metaModel.push
        mType: Constants.ENUM
        name: thisMEnum.name
        type: thisMEnum.type
