def get_response_for(request)
      if @rules.has_key?(request.method)
        processing_rule = @rules[request.method]
      else
        message = "\"method '#{request.method}' did not match any processing rule\""
        @logger.warn(message)
        return FatalErrorResponse.new(message)
      end

      begin
        user_implementation = processing_rule.user_implementation
        result = user_implementation.call(*request.params)

        return ValidResponse.new(request.id, result)
      rescue Exception => e
        message = '"user implementation raised exception"'
        @logger.warn("#{message}, #{e.message}")
        @logger.warn e.backtrace.join("\n")
        return FatalErrorResponse.new(message)
      end
    end
def get_response_for(request)
      if @rules.has_key?(request.method)
        processing_rule = @rules[request.method]
      else
        message = "\"method '#{request.method}' did not match any processing rule\""
        @logger.warn(message)
        return FatalErrorResponse.new(message)
      end

      begin
        user_implementation = processing_rule.user_implementation
        result = user_implementation.call(*request.params)

        return ValidResponse.new(request.id, result)
      rescue Exception => e
        message = '"user implementation raised exception"'
        @logger.warn("#{message}, #{e.message}")
        @logger.warn e.backtrace.join("\n")
        return FatalErrorResponse.new(message)
      end
    end
~~~~ Accessors