    # File lib/fog/aws/parsers/compute/describe_instance_status.rb, line 40
              def end_element(name)
                case name
                #Simple closers
                when 'instanceId', 'availabilityZone'
                  @instance[name] = value
                when 'nextToken', 'requestId'
                  @response[name] = value
                when 'systemStatus', 'instanceState', 'instanceStatus', 'eventsSet'
                  @inside = nil
                when 'item'
                  case @inside
                  when :eventsSet
                    @instance['eventsSet'] << @item
                  when :systemStatus, :instanceStatus
                    @instance[@inside.to_s]['details'] << @item
                  when nil
                    @response['instanceStatusSet'] << @instance
                  end
                  @item = nil
                when 'code', 'description', 'notBefore', 'notAfter', 'name', 'status'
                  @item.nil? ? (@instance[@inside.to_s][name] = value) : (@item[name] = value)
                end
              end