           verifiedCount++  if data['meta']?[key]?
 
         callback null, bootstrapKeys.length is verifiedCount
+
+


  @create = permit 'create credential',

    success: (client, data, callback)->

      {delegate} = client.connection
      {provider, title, meta} = data
      originId = delegate.getId()

      if not PROVIDERS[provider]?

      { permission: 'update credential', validateWith: Validators.own }
    ]

    success: (client, callback) ->

      Relationship.someData targetId : @getId(), {
        as:1, sourceId:1, sourceName:1
      }, (err, cursor) ->

        return callback err  if err?

        cursor.toArray (err, arr) ->
          return callback err  if err?

          if arr.length > 0
