CorsHelper.addCORSOrigin(servletContext, rb, requestHeaders);
return rb.build();
}
if (rs != null) {
ResponseBuilder rb = Response.ok(rs.toJSON());
CorsHelper.addCORSOrigin(servletContext, rb, requestHeaders);
return rb.build();
} else {
ResponseBuilder rb = Response.ok();
CorsHelper.addCORSOrigin(servletContext, rb, requestHeaders);