         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; @
+        @resources = (@resources or []).concat pattern
+        logger.debug associate.grey; this
 
     # This is a very basic method that adds the specified regular
     # expression pattern to the list of permitted domain patterns.

        associate = "Associating #{inspected} resource with #{identify}"
        notRegexp = "The #{inspected} is not a valid regular expression"
        assert _.isRegExp(pattern), notRegexp
        (@domains ?= []).push pattern
        logger.debug associate.grey; @

    # This method determines whether the supplied HTTP request
    # matches this service. This is determined by examining the

    # Supports implicit extraction of captured groups in the match.
    # Use this to configure what domains should match with service.
    @domain: (pattern) ->
        previous = @domains or []
        identify = @identify().underline
        regexify = (s) -> new RegExp "^#{RegExp.escape(s)}$"
        pattern = regexify pattern if _.isString pattern
