@PUT
@Produces("text/plain")
public Response setCookies() {
ResponseBuilder rb = Response.ok();
rb.cookie(new NewCookie("name", "value", uri.getBaseUri().getPath() + uri.getPath(), uri
.getBaseUri().getHost().toLowerCase(), "comment", 10, false));
rb.cookie(new NewCookie("name2", "value2", uri.getBaseUri().getPath() + uri.getPath(), uri
.getBaseUri().getHost().toLowerCase(), "comment2", 10, false));
rb.cookie(new NewCookie("name3", "value3", uri.getBaseUri().getPath() + uri.getPath(), uri
.getBaseUri().getHost().toLowerCase(), "comment2", 10, false));