 
   _createChildren: ->
     for child in @attributes.children
+      console.log child
       for attribute of child
         className = attribute.split(".")
         type = className[0]

      async   : false
      dataType: "text"
      error   : -> throw "Error loading scaffold in #{url}"
    YAML.parse scaffold.responseText


  @scaffold: (url) ->
    loader = if $$? then $$ else $
    scaffold = loader.ajax
      url     : url
      async   : false
      dataType: "text"
      error   : -> throw "Error loading scaffold in #{url}"
    yaml = YAML.parse scaffold.responseText

  constructor: (@attributes, scaffold) ->
    super
    if scaffold then yaml = @_getScaffold(scaffold)
    @attributes = Atoms.Core.Helper.mix @attributes, yaml
    yaml = undefined
    @constructor.type = @constructor.type or "Organism"
