@HEAD
public Response head(@Context UriInfo uriInfo)
{
UriBuilder absolute = uriInfo.getBaseUriBuilder();
URI customerUrl = absolute.clone().path(CustomerResource.class).build();
URI orderUrl = absolute.clone().path(OrderResource.class).build();
Response.ResponseBuilder builder = Response.ok();
Link customers = Link.fromUri(customerUrl).rel("customers").type("application/xml").build();
Link orders = Link.fromUri(orderUrl).rel("orders").type("application/xml").build();
builder.links(customers, orders);