# File lib/cgikit/resource.rb, line 188
    def create_main_package( options = {} )
      main = Package.new(File.dirname(@application.path), options)
      main.lib_path = nil
      if @application.component_path then
        main.component_path = @application.component_path
      end
      if @application.resource_path then
        main.resource_path = @application.resource_path
      end
      if @application.web_server_resource_path then
        main.web_server_resource_path = @application.web_server_resource_path
      end
      main.load
      info("load main package: #{main.name}")
      main
    end