DeleteRouteCommand deleteRouteCommand = new DeleteRouteCommand(target, route);
IStatus deleteRouteStatus = deleteRouteCommand.doIt();
if (!deleteRouteStatus.isOK())
return deleteRouteStatus;
deletedRoutesJSON.put(route.toJSON());
}
JSONObject result = new JSONObject();
result.put("Routes", deletedRoutesJSON);
return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, result);