@Path("/plans/{planName}/stop")
public Response stopPlan(@PathParam("planName") String planName) {
final Optional<PlanManager> planManagerOptional = getPlanManager(planName);
if (planManagerOptional.isPresent()) {
Plan plan = planManagerOptional.get().getPlan();
<BUG>plan.getStrategy().interrupt();
plan.restart();</BUG>
return Response.status(Response.Status.OK)
.entity(new CommandResultInfo("Received cmd: stop"))
.build();

@Path("/plans/{planName}/stop")
public Response stopPlan(@PathParam("planName") String planName) {
final Optional<PlanManager> planManagerOptional = getPlanManager(planName);
if (planManagerOptional.isPresent()) {
Plan plan = planManagerOptional.get().getPlan();
plan.interrupt();
plan.restart();
return Response.status(Response.Status.OK)
.entity(new CommandResultInfo("Received cmd: stop"))
.build();
