# File lib/openshift-origin-controller/app/models/application.rb, line 183
  def self.find(user, app_name)
    return nil if app_name.nil? or app_name.empty?
    app = nil
    if user.applications
      user.applications.each do |next_app|
        if next_app.name.downcase == app_name.downcase
          app = next_app
          break
        end
      end
    else
      app = super(user.login, app_name)
      return nil unless app
      app.user = user
      app.reset_state
    end
    app
  end