    # File lib/fog/vcloud/requests/compute/undeploy.rb, line 5
            def undeploy(vapp_uri, save_state = false)
              # builder = Builder::XmlMarkup.new
              # builder.UndeployVAppParams(:xmlns => 'http://www.vmware.com/vcloud/v1',
              #                            :saveState => save_state) {}
              builder = if version =='1.0'
                            "<UndeployVAppParams saveState=\"#{save_state.to_s}\" xmlns=\"http://www.vmware.com/vcloud/v1\"/>"
                        else
                           "                        <UndeployVAppParams xmlns=\"http://www.vmware.com/vcloud/v1.5\">\n                        <UndeployPowerAction>shutdown</UndeployPowerAction>\n                        </UndeployVAppParams>\n\n"
                        end
              request(
                      :body     => builder,
                      :expects  => 202,
                      :headers  => {'Content-Type' => 'application/vnd.vmware.vcloud.undeployVAppParams+xml' },
                      :method   => 'POST',
                      :uri      => vapp_uri + '/action/undeploy',
                      :parse    => true
                      )
            end