# File lib/cgikit/application.rb, line 567
    def set_resource_manager
      # backward compatibility
      unless @component_path then
        @component_paths.each do |path|
          if FileTest.exist?(path) then
            @component_path = path
          end
        end
      end
      @resource_path = @resources if @resources
      @web_server_resource_path = @web_server_resources unless @web_server_resources

      @resource_manager = ResourceManager.new(self, @main_package_options)
      @required_packages.each do |name|
        @resource_manager.load_package(name)
      end
    end