} else if (format.equals("jsonp")) {
return Response.ok()
.entity(new JSONWithPadding(response, callback))
.type("application/x-javascript").build();
} else {
throw new UnsupportedFormatException();
}
} else {
return Response.ok(response.toString())
.type(MediaType.APPLICATION_XML).build();
}