# File lib/openshift-origin-controller/app/controllers/legacy_broker_controller.rb, line 364
  def check_cartridge_type(framework, cart_type)
    carts = Application.get_available_cartridges(cart_type)
    unless carts.include? framework
      if cart_type == 'standalone'
        raise OpenShift::UserException.new(110), "Invalid application type (-t|--type) specified: '#{framework}'.  Valid application types are (#{carts.join(', ')})."
      else
        raise OpenShift::UserException.new(110), "Invalid type (-c|--cartridge) specified: '#{framework}'.  Valid cartridge types are (#{carts.join(', ')})."
      end
    end
  end