       #  return assert.tests.isAnArray(@content)
 
     getContent: (parentKey) ->
-      console.log "getContent", @_id
+      $log.log "getContent", @_id
       assert.defined @_id, "@_id", "getContent"
       if @_id == "shares"
         return $q.when(@content)

      @subfolderKey     = doc.subfolderKey
      @dataKey          = doc.dataKey

      @parentId         = doc.parentId or parentId
      @keyDurty         = if doc.keyDurty? then doc.keyDurty else false

      if not @dataKey and parentKey?
        @generateReadCrypTreeKeys(parentKey)
        @generateWriteCrypTreeKeys()

    #
    # Class methods
    #
    @_getParent: (doc, parentFolder) ->
      deferred = $q.defer()

          content._id = @_id
        if @_rev
          content._rev = @_rev
      $log.debug "saveContent", content, @dataKey
      DbDoc.encryptAndSave(content, @dataKey)

    save: () ->
      _funcName = "save"
      $log.log _funcName
      if @content?
        @saveContent().then (contentResult) =>
          unless @metadata?
