# File lib/handler/wrapped_handler.rb, line 27
    def self.wrap(impl, on_error = nil)
      return nil if impl.nil?

      result = self.fetch_instance(impl) || WrappedHandler.new(impl)
      result.on_error = on_error
      return result
    end