         # 'fetchRelativeReviews', 'approve'
       ]
       static            : [
-        'create', 'someWithRelationship'
+        'create', 'someWithRelationship', 'one'
         # , 'someWithRelationship', 'updateAllSlugs'
         # 'some', 'each', 'fetchAllAppsData'
       ]

      'delete apps'     : []

    schema              :
      identifier        :
        type            : String
        set             : (value)-> value?.trim()

  #         @update ($set: approved: state), (err)=>
  #           callback err

  # Do not return not approved apps
  @one$ = secure (client, selector, options, callback)->
    {delegate} = client.connection
    [options, callback] = [callback, options] unless callback
    @one selector, options, (err, app)->
      if err or not app
        return callback err
      else unless app.approved
        if (delegate.checkFlag 'super-admin') or   \
           (delegate.checkFlag 'app-publisher' and \
            delegate.getId().equals app.originId)
          return callback null, app
        return callback new KodingError 'No such application.'
      callback null, app

  getDefaultSelector = (client, selector)->
    {delegate} = client.connection
