if (!(r instanceof BaseRemoteRunner)) {
ResponseBuilder rb = Response.status(Status.NOT_ACCEPTABLE);
return rb.entity("Only BaseRemoteRunners are valid for setting status").type("text/plain").build();
}
BaseRemoteRunner brr = (BaseRemoteRunner) r;
brr.setRunnerInfo(runnerInfo);
CheckRunnersTask crt = (CheckRunnersTask) context.getAttribute(TASK_ATTR);
crt.statusUpdate(brr);
return Response.ok().build();