class SampleResource {

	@PUT
	@Path("/{id}")
	@Produces("application/json")
	@Consumes("application/json")
	public Response put(@PathParam("id") String id, JsonNode node) {
		Resource resource;
		try {
			resource = store.update(id, node);
		} catch (Exception e) {
			return Response.serverError().build();
		}

		return Response.ok(resource).build();
	}

}