@DELETE
 @Path("/{id}")
 @UnitOfWork
 public Response disable(@PathParam("id") Long id) throws Exception {
   specDAO.toggleActive(id, false);
   manager.stop(id);
   return Response.ok().build();
 }
 @POST
 @Path("/{id}")
 @UnitOfWork
 public Response enable(@PathParam("id") Long id) throws Exception {
   specDAO.toggleActive(id, true);
   manager.start(id);
   return Response.ok().build();
 }
 @POST
 @Path("/{id}/ad-hoc")
 @UnitOfWork
 public Response adHoc(
     @PathParam("id") Long id, @QueryParam("start") String start, @QueryParam("end") String end)
     throws Exception {
   manager.runAdHoc(id, start, end);
   return Response.ok().build();
 }
 @GET
 @UnitOfWork
 public List<Long> showActiveJobs() {
   return manager.getActiveJobs();
 }