public void update(Request request, Response response) {
   String id = request.getHeader(Constants.Url.SAMPLE_ID, "No resource ID supplied");
   SampleOidEntity entity =
       request.getBodyAs(SampleOidEntity.class, "Resource details not provided");
   entity.setId(Identifiers.MONGOID.parse(id));
   service.update(entity);
   response.setResponseNoContent();
 }
 public void delete(Request request, Response response) {
   String id = request.getHeader(Constants.Url.SAMPLE_ID, "No resource ID supplied");
   service.delete(Identifiers.MONGOID.parse(id));
   response.setResponseNoContent();
 }