         presource = _.find resources, presource
         assert gdomain isnt null, "missing domain"
         assert gresource isnt null, "missing resource"
-        parameters = [request, response, next]
-        @emit "process", gdomain, gresource, parameters...
+        @emit "process", gdomain, gresource, arguments...
         return domain: gdomain, resource: gresource

        presource = (pattern) -> pattern.test pathname
        domainOk = _.some domains, pdomain
        resourceOk = _.some resources, presource
        parameters = [request, response, next]
        matches = domainOk and resourceOk
        @emit "matches", matches, parameters...
        return domainOk and resourceOk

    # This method should process the already matched HTTP request.

    # Supports implicit extraction of captured groups in the match.
    # Use this to configure what resources should match with service.
    @resource: (pattern) ->
        identify = @identify().underline
        regexify = (s) -> new RegExp "^#{RegExp.escape(s)}$"
        pattern = regexify pattern if _.isString pattern
        inspected = pattern.unescape()?.underline or pattern
        associate = "Associating #{inspected} resource with #{identify}"
        notRegexp = "The #{inspected} is not a valid regular expression"
        assert _.isRegExp(pattern), notRegexp
        (@resources ?= []).push pattern
        logger.debug associate.grey; @

    # This is a very basic method that adds the specified regular
    # expression pattern to the list of permitted domain patterns.
