@GET @Path("stop") public Response stop() { if (service.isRunning()) service.stop(new HttpSource(request)); return Response.status(Status.OK).build(); }