# File lib/aws/core/xml_grammar.rb, line 332
        def wrapper method_name, options = {}, &blk
          if block_given?
            customizations =
              eval_customization_context(method_name,
                                         CustomizationContext.new(method_name),
                                         &blk)
            raise NotImplementedError.new("can't customize wrapped " +
                                          "elements within the wrapper") unless
              customizations[:children].empty?
            @current[:wrapper_frames] ||= {}
            @current[:wrapper_frames][method_name] = customizations
          end
  
          (options[:for] || []).each do |element_name|
            element element_name do
              @current[:wrapper] ||= []
              @current[:wrapper] << method_name
            end
          end
        end