class SampleResource {

	@GET
	@Path("/{id}")
	@Produces("application/json")
	public Response get(@PathParam("id") String id) {
		Resource resource;
		try {
			resource = store.get(id);
		} catch (IOException e) {
			return Response.status(Response.Status.NOT_FOUND).build();
		}

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

}