val out: OutputStream = getOutputStream()

try {
  out.write(response.getBytes())
  out.flush()
}
finally {
  out.close()
}