       appParams            = options.params or {}
       appParams.label      = name
       defaultCallback      = createOrShow.bind this, appOptions, appParams, callback
-      kodingAppsController = KD.getSingleton("kodingAppsController")
 
       # If app has a preCondition then first check condition in it
       # if it returns true then continue, otherwise call failure

            return warn err  if err
            KD.utils.defer => @open name, options, callback

        return @fetchManifests name, (err)=>
          options.avoidRecursion = yes
          unless err
          then @open name, options, callback
          else do defaultCallback

      appParams = options.params or {}


    appOptions            = $.extend {}, true, KD.getAppOptions name
    appOptions.params     = params
    @register appInstance = new AppClass appOptions  if AppClass

    log 'AppManager: opening an app', name
    if @isAppAvailable name
